:root {
  --bg: #f3f5f8;
  --bg-alt: #e8eef2;
  --ink: #152033;
  --muted: #5a6b7c;
  --line: #d9e1ea;
  --card: #ffffff;
  --brand: #0b6b52;
  --brand-ink: #ffffff;
  --brand-dark: #084c3a;
  --accent: #9a4a12;
  --navy: #102033;
  --danger: #8a1f1f;
  --ok: #0b6b52;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -40px; background: var(--navy); color: #fff;
  padding: 0.5rem 0.8rem; z-index: 20;
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 72px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; letter-spacing: 0.04em;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 1.05rem; }
.logo-text small { color: var(--muted); font-size: 0.75rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; margin-left: auto;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 2px; background: var(--navy); margin: 0 auto; position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav ul { display: flex; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink); padding: 0.45rem 0.7rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
}
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--bg-alt); }
.search-bar {
  background: #eef5f2;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.search-bar .header-search {
  display: flex; gap: 0.4rem; width: 100%; max-width: 720px; margin: 0 auto;
  background: #fff; padding: 0.32rem 0.32rem 0.32rem 0.5rem; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(11, 107, 82, 0.06);
}
.header-search {
  display: flex; gap: 0.35rem; flex: 1 1 200px; max-width: 360px;
  background: var(--bg-alt); padding: 0.28rem 0.28rem 0.28rem 0.45rem; border-radius: 12px; border: 1px solid var(--line);
}
.header-search input { flex: 1; min-width: 0; }
.header-search input, .search-panel input, .contact-form input, .contact-form select, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; font: inherit; background: #fff; color: var(--ink);
}
.header-search button, .btn {
  border: 0; border-radius: 999px; padding: 0.55rem 1rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.header-search button, .btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover, .header-search button:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-disabled { background: #edf1f5; color: #7b8794; cursor: not-allowed; }
:focus-visible { outline: 3px solid #7db8a6; outline-offset: 2px; }
.hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(800px 240px at 10% 0%, #d9efe7 0%, transparent 60%),
    linear-gradient(#fff, var(--bg));
}
.hero p.lead { font-size: 1.08rem; max-width: 46rem; color: var(--muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.quick-links a {
  display: inline-flex; align-items: center; text-decoration: none; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem;
  font-size: 0.88rem; font-weight: 700;
}
.quick-links a:hover { border-color: var(--brand); color: var(--brand-dark); }
.home-compare { margin-top: 0.4rem; }
.dir-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dir-table th, .dir-table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dir-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dir-table a { font-weight: 700; text-decoration: none; }
.toc-note { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.notice, .status {
  background: #fff7ed; border: 1px solid #f3ddc3; color: #6b3f14;
  padding: 0.9rem 1rem; border-radius: 12px;
}
.status-ok { background: #eef8f3; border-color: #c7e6d8; color: #084c3a; }
.status-err { background: #fdecec; border-color: #f3c7c7; color: var(--danger); }
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.game-card, .panel, .cat-card, .download-box, .faq details, .article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.game-card { display: grid; grid-template-columns: 90px 1fr; gap: 0.9rem; padding: 1rem; }
.game-card-media img { width: 90px; height: 90px; object-fit: cover; border-radius: 18px; background: #0f1c2e; }
.game-card-body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.game-card-body h3 a { text-decoration: none; color: inherit; }
.game-card-body p { font-size: 0.92rem; color: var(--muted); }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-dark); font-weight: 800; margin: 0 0 0.2rem !important; }
.meta-line { font-size: 0.8rem !important; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.section { padding: 1.5rem 0 2rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.section-head a { font-weight: 700; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cat-card { padding: 1.1rem 1.2rem; text-decoration: none; color: inherit; display: block; }
.cat-card h3 { margin: 0 0 0.4rem; }
.cat-card h3 a { text-decoration: none; color: inherit; }
.cat-card h3 a:hover { color: var(--brand-dark); }
.cat-card p { color: var(--muted); margin: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 1rem 0 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #9aa8b6; }
.page { padding: 0 0 3rem; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start;
}
.article, .panel, .download-box { padding: 1.25rem 1.3rem 1.5rem; }
.article p, .prose p { max-width: 68ch; }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin-bottom: 0.4rem; }
.download-box h2 { margin-top: 0; }
.dl-meta { display: grid; gap: 0.35rem; margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.faq { display: grid; gap: 0.55rem; }
.faq details { padding: 0.7rem 1rem; }
.lead { font-size: 1.08rem; max-width: 46rem; color: var(--muted); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 0.6rem 0 0.2rem; color: var(--muted); }
.related { display: grid; gap: 0.8rem; }
.search-panel { padding: 1rem; display: flex; gap: 0.5rem; margin: 1rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-panel input { flex: 1; }
.contact-form { display: grid; gap: 0.7rem; max-width: 36rem; }
.contact-form label { font-weight: 700; font-size: 0.92rem; }
.site-footer { background: var(--navy); color: #d5dee8; padding: 2rem 0 1rem; margin-top: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 0.6rem; }
.site-footer a { color: #d5dee8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.4rem; padding-top: 1rem; font-size: 0.85rem; }
.game-hero { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: start; margin: 1rem 0 1.25rem; }
.game-hero img { width: 90px; height: 90px; border-radius: 20px; }
.muted { color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
@media (max-width: 860px) {
  .layout, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem;
    flex-direction: column; align-items: stretch; margin-left: 0; z-index: 11;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .header-inner { position: relative; }
}
@media (max-width: 560px) {
  .game-card { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
}
