:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #18181b;
  --panel-soft: #111113;
  --line: #27272a;
  --muted: #a1a1aa;
  --soft: #71717a;
  --text: #f4f4f5;
  --accent: #f97316;
  --accent-strong: #fb923c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

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

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

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

.site-sidebar {
  display: none;
}

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

.brand {
  display: grid;
  gap: 4px;
  text-align: center;
}

.brand-main {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand-main span {
  color: var(--text);
}

.brand-sub,
.eyebrow {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: grid;
  gap: 10px;
  width: 100%;
}

.site-nav a {
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.site-nav a:hover,
.site-nav a.active {
  background: #27272a;
  color: white;
}

.page-head {
  margin-bottom: 26px;
}

.home-topbar {
  align-items: center;
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
}

.home-announcement {
  align-items: center;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.14), rgba(24, 24, 27, 0.96));
  border: 1px solid rgba(249, 115, 22, 0.36);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 7px 14px 7px 8px;
}

.announcement-label {
  background: var(--accent);
  border-radius: 999px;
  color: #111113;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px;
}

.announcement-marquee {
  align-items: flex-start;
  color: var(--text);
  display: flex;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 800;
  height: 22px;
  line-height: 22px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-marquee p {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-width: 0;
  transform: translateY(0);
  will-change: transform;
}

.announcement-marquee span {
  align-items: center;
  display: flex;
  flex: 0 0 22px;
  height: 22px;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: flex;
  gap: 12px;
  margin: 0 0 32px auto;
  max-width: 450px;
  padding: 0 16px;
  width: min(450px, 100%);
}

.home-search:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.home-search svg {
  color: var(--soft);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.home-search svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-search input {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  height: 44px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

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

.page-head h1,
.detail-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  margin: 8px 0 12px;
}

.page-head p,
.detail-hero-body p,
.markdown-body {
  color: var(--muted);
  line-height: 1.75;
}

.taxonomy-strip {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.taxonomy-strip h2 {
  font-size: 15px;
  margin: 0 0 10px;
}

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

.pill {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  padding: 8px 12px;
}

.pill:hover,
.term-card:hover,
.game-card:hover {
  border-color: rgba(249, 115, 22, 0.65);
}

.pill span {
  color: var(--accent);
}

.content-layout,
.detail-layout {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.content-layout[hidden],
.pagination[hidden],
.search-status[hidden] {
  display: none !important;
}

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

.game-card,
.term-card,
.info-panel,
.download-card,
.ad-slot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-card-media {
  aspect-ratio: 460 / 215;
  background: #27272a;
  overflow: hidden;
  position: relative;
}

.game-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.game-card h2 {
  container-type: inline-size;
  font-size: 18px;
  height: 24.3px;
  line-height: 1.35;
  margin: 0 0 10px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.game-card-title-text {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.resource-spec {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  min-height: 16.8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .game-card:hover .game-card-title-text {
    animation: card-title-marquee 4.5s ease-in-out infinite alternate;
    max-width: none;
    overflow: visible;
    padding-right: 28px;
    text-overflow: clip;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card:hover .game-card-title-text {
    animation: none;
    max-width: 100%;
    overflow: hidden;
    padding-right: 0;
    text-overflow: ellipsis;
  }
}

@keyframes card-title-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(min(0px, calc(100cqw - 100% - 12px)));
  }
}

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

.card-meta,
.meta-row {
  align-items: center;
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 10px;
  justify-content: space-between;
}

.card-meta {
  flex-wrap: nowrap;
  margin-top: auto;
}

.resource-time {
  min-width: 0;
}

.card-meta span {
  background: #27272a;
  border-radius: 6px;
  color: white;
  font-weight: 800;
  padding: 7px 10px;
}

.card-meta .card-cta {
  background: var(--accent);
  color: #111;
}

.game-card:hover .card-cta {
  background: var(--accent-strong);
}

.desktop-aside {
  display: none;
}

.detail-sidebar {
  display: block;
}

.ad-slot {
  color: var(--soft);
  margin-top: 24px;
  padding: 18px;
  text-align: center;
}

.ad-slot span {
  color: var(--accent);
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.ad-slot p {
  font-size: 12px;
  margin: 6px 0 0;
}

.detail-hero {
  border-radius: 8px;
  margin-bottom: 28px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.detail-hero::after {
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.78) 30%, rgba(9, 9, 11, 0.28) 48%, rgba(9, 9, 11, 0) 68%);
  content: "";
  inset: 0;
  position: absolute;
}

.detail-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.detail-hero-body {
  max-width: min(33%, 430px);
  padding: 44px 24px;
  position: relative;
  z-index: 1;
}

.detail-hero h1 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: calc(100vw - 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: max-content;
}

.hero-term-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.hero-term-row span {
  background: rgba(244, 244, 245, 0.14);
  border: 1px solid rgba(244, 244, 245, 0.14);
  border-radius: 999px;
  color: rgba(244, 244, 245, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
}

.hero-summary {
  color: rgba(244, 244, 245, 0.86);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 18px;
}

.hero-fact-row {
  align-items: center;
  color: rgba(244, 244, 245, 0.78);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: 14px;
}

.hero-fact-row span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-width: 0;
}

.hero-rating span {
  color: #f59e0b;
  font-size: 15px;
}

.back-link {
  align-items: center;
  background: rgba(24, 24, 27, 0.78);
  border: 1px solid rgba(244, 244, 245, 0.16);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  min-height: 36px;
  padding: 0 12px;
}

.back-link:hover {
  border-color: rgba(249, 115, 22, 0.65);
  color: var(--accent-strong);
}

.detail-main,
.markdown-body,
.screenshot-section {
  min-width: 0;
}

.info-panel {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  padding: 18px;
}

.info-panel.has-requirements .system-requirements {
  grid-column: 1 / -1;
}

.info-panel.has-requirements .game-info {
  grid-template-columns: 1fr;
}

.info-panel.has-requirements .game-info div:last-child {
  grid-column: auto;
}

.cover-art {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.game-info {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  margin: 0;
}

.game-info div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.game-info div:last-child {
  grid-column: 1 / -1;
}

.game-info .resource-action {
  align-content: center;
  justify-items: center;
}

.game-info .wide-info {
  grid-column: 1 / -1;
}

.game-info dt {
  color: var(--soft);
  font-size: 12px;
}

.game-info dd {
  font-weight: 800;
  margin: 0;
  min-width: 0;
}

.system-requirements {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  height: 100%;
  min-width: 0;
  padding: 14px;
}

.requirements-head {
  margin-bottom: 12px;
}

.requirements-head .eyebrow {
  color: var(--accent);
  font-size: 11px;
  margin: 0 0 4px;
}

.requirements-head h2 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.requirements-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.requirements-list div {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 3px;
  padding-top: 9px;
}

.requirements-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.requirements-list dt {
  color: var(--soft);
  font-size: 11px;
}

.requirements-list dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.download-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.download-shortcuts a {
  background: var(--accent);
  border-radius: 6px;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  padding: 7px 10px;
}

.download-shortcuts a:hover {
  background: var(--accent-strong);
}

.download-shortcuts .download-primary-link {
  box-shadow: 0 10px 24px rgba(255, 113, 24, 0.22);
  font-size: 14px;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  width: min(100%, 220px);
}

.download-primary-link svg {
  flex: 0 0 auto;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 18px;
}

.download-primary-link span {
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.download-modal-panel {
  background: #18181b;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  max-height: min(760px, calc(100vh - 48px));
  max-width: 760px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(100%, 760px);
}

.download-modal-close {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
}

.download-modal-close:hover {
  border-color: rgba(249, 115, 22, 0.6);
  color: var(--accent);
}

.download-modal-close svg {
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
  width: 18px;
}

.download-modal-head {
  padding-right: 48px;
}

.download-modal-head h2 {
  color: var(--text);
  font-size: 26px;
  margin: 6px 0 10px;
}

.download-modal-tip {
  margin: 0;
}

.mobile-modal-tip {
  color: var(--muted);
  display: none;
  font-size: 13px;
}

.download-modal-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 20px;
}

.download-modal-card {
  background: var(--panel);
}

.download-modal-card .qr-image,
.download-modal-card .qr-placeholder {
  margin-left: auto;
  margin-right: auto;
}

.download-modal-card .desktop-download {
  text-align: center;
}

.download-guide-card {
  display: grid;
  gap: 12px;
}

.download-guide-card h3,
.download-guide-card p {
  margin: 0;
}

.download-guide-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.download-guide-link {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #111;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  padding: 11px 14px;
}

.download-guide-link:hover {
  background: var(--accent-strong);
}

.support-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.support-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.support-list strong {
  color: var(--text);
  font-size: 14px;
}

.support-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.related-games {
  margin-top: 22px;
}

.related-games h3 {
  color: var(--text);
  font-size: 18px;
  margin: 0 0 12px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-link {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.related-link:hover {
  border-color: rgba(249, 115, 22, 0.65);
}

.related-link img {
  aspect-ratio: 16 / 9;
  background: #09090b;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.related-link span {
  min-width: 0;
  padding: 10px 11px 11px;
}

.related-link strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-page {
  margin: 0 auto;
  max-width: 860px;
  padding: 42px 24px;
}

.resource-page-head {
  margin-bottom: 24px;
}

.resource-page-head h1 {
  color: var(--text);
  font-size: 36px;
  margin: 8px 0 10px;
}

.resource-page-head p:last-child {
  color: var(--muted);
  margin: 0;
}

.resource-fragment {
  margin-top: 0;
}

.markdown-body,
.screenshot-section,
.download-section {
  margin-top: 28px;
}

.markdown-body h2,
.markdown-body h3,
.screenshot-section h2,
.section-title h2 {
  color: var(--text);
}

.markdown-body pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  max-width: 100%;
  overflow: auto;
  padding: 16px;
}

.markdown-body pre code {
  white-space: pre;
}

.screenshot-grid {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.screenshot-grid img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  max-width: min(100%, 860px);
  width: 100%;
}

.download-list {
  display: grid;
  gap: 14px;
}

.detail-sidebar .download-section {
  margin-top: 0;
}

.detail-sidebar .section-title h2 {
  font-size: 24px;
  margin: 6px 0 12px;
}

.detail-sidebar .download-card {
  padding: 16px;
}

.detail-sidebar .qr-placeholder {
  max-width: 100%;
}

.download-card {
  padding: 18px;
  scroll-margin-top: 24px;
}

.download-card.recommended {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.16);
}

.download-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.download-card h3 {
  margin: 0;
}

.download-card-head span {
  background: var(--accent);
  border-radius: 999px;
  color: #111;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.desktop-tip,
.mobile-download p,
.desktop-download p {
  color: var(--muted);
  font-size: 13px;
}

.qr-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, #f4f4f5 0 8px, #18181b 8px 16px);
  border: 8px solid white;
  border-radius: 8px;
  color: #111;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  margin-top: 16px;
  max-width: 180px;
}

.qr-image {
  aspect-ratio: 1;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  display: block;
  height: auto;
  margin-top: 16px;
  max-width: 180px;
  object-fit: contain;
  width: 100%;
}

.copy-button,
.mobile-download-button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  padding: 11px 14px;
}

.mobile-download {
  display: none;
}

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

.term-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.term-card strong {
  color: var(--accent);
}

.empty-state {
  color: var(--muted);
}

.search-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
}

.search-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: -18px 0 22px;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 0;
}

.pagination-link,
.pagination-status,
.pagination-jump {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.pagination-jump {
  background: var(--panel);
  color: var(--muted);
  gap: 8px;
  padding: 0 8px 0 12px;
}

.pagination-jump input {
  appearance: textfield;
  background: #09090b;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  height: 26px;
  text-align: center;
  width: 54px;
}

.pagination-jump input::-webkit-inner-spin-button,
.pagination-jump input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.pagination-jump input:focus {
  border-color: rgba(249, 115, 22, 0.7);
  outline: none;
}

.pagination-jump button {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 4px;
}

.pagination-jump button:hover {
  color: var(--accent-strong);
}

.pagination-link {
  background: var(--panel);
  color: var(--text);
}

.pagination-link:hover {
  border-color: rgba(249, 115, 22, 0.65);
  color: var(--accent-strong);
}

.pagination-link.is-disabled {
  color: var(--soft);
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-status {
  color: var(--muted);
}

@media (max-width: 720px) {
  .detail-hero {
    min-height: 460px;
  }

  .detail-hero::after {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.9), rgba(9, 9, 11, 0.68), rgba(9, 9, 11, 0.32));
  }

  .detail-hero-body {
    max-width: none;
    padding: 34px 20px;
  }

  .detail-hero h1 {
    font-size: clamp(32px, 9vw, 46px);
    max-width: none;
    overflow: visible;
    white-space: normal;
    width: auto;
  }

  .hero-summary {
    font-size: 14px;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

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

  .game-info div:last-child {
    grid-column: auto;
  }

  .cover-art {
    height: auto;
    justify-self: center;
    max-height: none;
    width: min(100%, 280px);
  }

  .desktop-download,
  .desktop-tip {
    display: none;
  }

  .download-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .download-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 20px;
    width: 100%;
  }

  .download-modal-head h2 {
    font-size: 23px;
  }

  .mobile-modal-tip {
    display: block;
  }

  .download-modal-list {
    grid-template-columns: 1fr;
  }

  .mobile-download {
    display: grid;
    gap: 8px;
    margin-top: 16px;
  }
}

@media (min-width: 1024px) {
  .site-shell {
    display: grid;
    grid-template-columns: 256px 1fr;
  }

  .site-sidebar {
    align-items: center;
    background: var(--panel-soft);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 34px;
    min-height: 100vh;
    padding: 28px 24px;
    position: sticky;
    top: 0;
  }

  .site-main {
    padding: 34px 0;
  }

  .home-topbar {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 450px);
  }

  .home-topbar .home-search {
    margin-bottom: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    grid-template-columns: 1fr 260px;
  }

  .desktop-aside {
    display: block;
  }

  .site-sidebar .ad-sidebar {
    margin-top: auto;
    width: 100%;
  }

  .content-layout > .desktop-aside .ad-sidebar {
    position: sticky;
    top: 24px;
  }

  .detail-layout > .detail-sidebar {
    align-self: start;
  }

  .detail-layout > .detail-sidebar .ad-sidebar {
    position: static;
  }
}

@media (min-width: 1280px) {
  .info-panel.has-requirements {
    grid-template-columns: minmax(220px, 250px) minmax(330px, 1fr) minmax(210px, 235px);
  }

  .info-panel.has-requirements .system-requirements {
    grid-column: 2;
    grid-row: 1;
  }

  .info-panel.has-requirements .game-info {
    grid-column: 3;
  }
}
