:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f6f1;
  --ink: #17201b;
  --muted: #5e6962;
  --line: #dfe7df;
  --brand: #0b7a53;
  --brand-dark: #07583d;
  --gold: #d99628;
  --coral: #e96443;
  --blue: #2377b9;
  --shadow: 0 18px 44px rgba(20, 36, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

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

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header nav a,
.site-footer nav a,
.text-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--brand-dark);
}

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

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: 36px;
  padding: 10px 0 26px;
}

.hero-copy h1,
.guide-hero h1,
.text-page h1 {
  margin: 0;
  max-width: 780px;
  font-size: 4.1rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.guide-hero h1,
.text-page h1 {
  font-size: 3.35rem;
}

.kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede,
.guide-hero p,
.text-page p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.04rem;
}

.search-panel {
  margin-top: 22px;
  padding: 16px;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(20, 36, 27, 0.06);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input,
.search-row button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.search-row input {
  width: 100%;
  padding: 0 14px;
  background: white;
  color: var(--ink);
}

.search-row button {
  padding: 0 16px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 52px;
}

.genre-chip {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
}

.genre-chip span {
  color: var(--muted);
  font-weight: 800;
}

.genre-chip strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-dark);
}

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

.section-head h2,
.guide-section h2,
.faq-block h2,
.comment-section h2,
.facts-panel h2,
.answer-strip h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(20, 36, 27, 0.05);
  overflow: hidden;
}

.guide-card[hidden] {
  display: none;
}

.guide-card a {
  min-height: 398px;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-decoration: none;
}

.guide-card:hover {
  border-color: rgba(11, 122, 83, 0.46);
  transform: translateY(-2px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.card-genre {
  margin: 18px 18px 0;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.guide-card h3 {
  margin: 14px 18px 8px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.guide-card p {
  margin: 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-meta {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 18px 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-art {
  width: 100%;
  margin: 0;
  background: var(--surface-2);
}

.card-art svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
}

.card-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.read-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.read-guide::after {
  content: "->";
}

.answer-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 30px;
  margin: 64px 0 38px;
  padding: 30px;
  border-radius: 8px;
  background: #12251d;
  color: white;
}

.answer-strip p,
.answer-strip li {
  color: rgba(255, 255, 255, 0.78);
}

.answer-strip ul {
  margin: 0;
  padding-left: 20px;
}

.article-page {
  padding: 24px 0 72px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-dark);
  text-decoration: none;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) minmax(300px, 380px);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 30px;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ee 100%);
  border: 1px solid var(--line);
}

.compact-hero {
  display: block;
}

.game-hero-art {
  align-self: center;
  margin: 0;
}

.game-hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(20, 36, 27, 0.1);
}

.game-hero-art img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(20, 36, 27, 0.1);
}

.play-link {
  display: inline-flex;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.play-link:hover {
  background: var(--brand-dark);
}

.related-link-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
}

.related-link-list a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.related-link-list a:hover {
  border-color: rgba(11, 122, 83, 0.46);
  background: var(--surface-2);
}

.quick-answer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.quick-answer span {
  color: #aadfca;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-answer p {
  margin: 10px 0 0;
  color: white;
  font-size: 1.05rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-main,
.article-aside,
.text-page {
  display: grid;
  gap: 16px;
}

.guide-section,
.faq-block,
.screenshot-gallery,
.comment-section,
.facts-panel,
.ad-box,
.text-page {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.screenshot-gallery h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

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

.screenshot-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: cover;
  object-position: top center;
}

.screenshot-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.guide-section ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.guide-section li + li {
  margin-top: 10px;
}

.faq-block details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-block details:first-of-type {
  margin-top: 14px;
}

.faq-block summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-block p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.comment-section h2 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.comment-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.comment-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.comment-fields {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.comment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
}

.comment-form textarea {
  min-height: 74px;
  resize: vertical;
}

.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-form button {
  min-width: 88px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.comment-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.comment-form button:hover {
  background: var(--brand-dark);
}

.comment-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.comment-status[data-tone="success"] {
  color: var(--brand-dark);
}

.comment-status[data-tone="error"] {
  color: var(--coral);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.comment-empty {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.comment-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.comment-meta strong {
  color: var(--ink);
}

.comment-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts-panel dl {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.facts-panel div {
  display: grid;
  gap: 2px;
}

.facts-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.facts-panel dd {
  margin: 0;
  font-weight: 800;
}

.source-link {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.ad-box {
  background: #fff7e8;
}

.ad-box span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-box p {
  margin: 8px 0 0;
  color: #72531d;
}

.narrow-page {
  width: min(820px, calc(100% - 32px));
}

.text-page a {
  color: var(--brand-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero,
  .guide-hero,
  .article-grid,
  .answer-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 12px;
  }

  .hero-copy h1 {
    font-size: 3.15rem;
  }

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

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

  .site-header nav {
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
    line-height: 1.08;
  }

  .guide-hero h1,
  .text-page h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  .search-row,
  .guide-grid,
  .comment-fields,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .comment-form button {
    width: 100%;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .section-head,
  .comment-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-hero,
  .answer-strip,
    .guide-section,
    .faq-block,
    .facts-panel,
    .ad-box,
    .comment-section,
    .text-page {
    padding: 20px;
  }
}
