:root {
  --bg: #0c0c0e;
  --bg-soft: #131316;
  --surface: #19191d;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f2f2;
  --text-soft: #b6afb1;
  --text-muted: #777176;
  --red: #eb4f59;
  --gold: #d7ab5c;
  --green: #58b889;
  --container: 1160px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
  font-family: inherit;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.game-container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.game-header {
  position: relative;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(18px);
}

.game-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.game-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.game-brand img {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.game-brand span {
  font-size: 18px;
  font-weight: 850;
}

.game-brand strong {
  margin-left: 3px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.back-link {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.back-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.game-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 20% 25%, rgba(235, 79, 89, 0.11), transparent 34%),
    radial-gradient(circle at 85% 60%, rgba(215, 171, 92, 0.06), transparent 27%);
}

.game-hero::after {
  position: absolute;
  top: -180px;
  left: 18%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.009),
    0 0 0 96px rgba(255, 255, 255, 0.006);
  pointer-events: none;
}

.breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.breadcrumbs a {
  flex: 0 0 auto;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span[aria-current] {
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
}

.game-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(44px, 7vw, 84px);
}

.cover-wrap {
  display: block;
  width: 100%;
  max-width: 320px;
  align-self: start;
  overflow: hidden;
  border-radius: 8px;
}

.game-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.game-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.game-eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
}

.game-intro h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.game-alias {
  margin-top: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 650;
}

.game-excerpt {
  max-width: 700px;
  margin-top: 23px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid #f26a72;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.download-button:hover {
  background: #f35b64;
  transform: translateY(-2px);
}

.download-button.is-disabled {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.game-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 35px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.game-details div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.game-details dt {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

.game-details dd {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.content-jump-links a {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.content-jump-links a:hover {
  border-color: rgba(235, 79, 89, 0.35);
  color: var(--text);
}

.game-section {
  padding: 90px 0;
  scroll-margin-top: 32px;
}

.game-section + .game-section {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.game-article {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: clamp(50px, 9vw, 120px);
}

.section-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: clamp(50px, 9vw, 120px);
}

.section-title span {
  color: var(--red);
  font-size: 9px;
  font-weight: 850;
}

.section-title h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0;
  line-height: 1.2;
}

.article-content {
  color: #c5bfc1;
  font-size: 15px;
  line-height: 2;
}

.article-content p + p {
  margin-top: 24px;
}

.updates-section {
  background: rgba(255, 255, 255, 0.014);
}

.updates-list {
  border-top: 1px solid var(--border);
}

.update-entry {
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--border);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}

.update-meta span {
  padding: 3px 7px;
  border: 1px solid rgba(88, 184, 137, 0.28);
  border-radius: 4px;
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
}

.update-meta time {
  color: var(--text-muted);
  font-size: 10px;
}

.update-entry h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.update-content {
  margin-top: 11px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.update-content p + p {
  margin-top: 10px;
}

.gallery-section {
  background: rgba(255, 255, 255, 0.016);
}

.gallery-section .section-title {
  margin-bottom: 34px;
}

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

.screenshot-item {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.screenshot-item:hover img {
  transform: scale(1.02);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  padding: 20px 34px 20px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 3px;
  color: var(--red);
  content: "+";
  font-size: 20px;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 660px;
  padding: 0 28px 22px 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.9;
}

.faq-answer p + p {
  margin-top: 12px;
}

.related-section {
  background: rgba(255, 255, 255, 0.016);
}

.related-section .section-title {
  margin-bottom: 30px;
}

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

.related-item {
  display: flex;
  min-width: 0;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.related-item:hover {
  border-color: rgba(235, 79, 89, 0.33);
  background: rgba(255, 255, 255, 0.032);
}

.related-item div {
  min-width: 0;
}

.related-item h3 {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item > span {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 20px;
}

.game-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: #0a0a0c;
}

.game-footer .game-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.game-footer p,
.game-footer a {
  color: var(--text-muted);
  font-size: 10px;
}

.game-footer a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid #ff747c;
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .game-hero-layout {
    grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
    gap: 44px;
  }

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

  .game-article {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 650px) {
  .game-container {
    width: min(100% - 32px, var(--container));
  }

  .game-header {
    height: 64px;
  }

  .game-brand span {
    font-size: 16px;
  }

  .game-hero {
    padding: 40px 0 62px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
  }

  .game-hero-layout {
    grid-template-columns: 1fr;
    gap: 43px;
  }

  .cover-wrap {
    width: min(86vw, 320px);
    margin-inline: auto;
  }

  .game-intro h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .game-excerpt {
    font-size: 14px;
  }

  .download-button {
    width: 100%;
  }

  .game-section {
    padding: 66px 0;
  }

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

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

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

@media (max-width: 420px) {
  .game-brand strong {
    display: none;
  }

  .back-link {
    padding-inline: 10px;
  }

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

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