:root {
  color-scheme: dark;
  --bg: #0b0908;
  --bg-soft: #110e0c;
  --panel: #181411;
  --panel-2: #201a16;
  --line: rgba(255, 244, 232, 0.09);
  --line-strong: rgba(255, 244, 232, 0.16);
  --text: #f7f0e7;
  --muted: #b8a99a;
  --muted-2: #8d7f72;
  --accent: #f0a35e;
  --accent-strong: #ffb877;
  --accent-soft: rgba(240, 163, 94, 0.13);
  --green: #86d99a;
  --green-soft: rgba(134, 217, 154, 0.12);
  --coffee: #ffdd57;
  --radius: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(240, 163, 94, 0.15), transparent 62%),
    radial-gradient(800px 500px at 10% 14%, rgba(120, 70, 40, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #1a1008; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(11, 9, 8, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 180ms ease, background 180ms ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(11, 9, 8, 0.9);
}
.header-inner {
  min-height: 64px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand img { border-radius: 8px; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a:hover { color: var(--text); }
.nav-github { color: var(--muted); }
.nav-github span { color: var(--muted-2); font-size: 11px; }
.menu-button {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #1b1108;
  box-shadow: 0 10px 28px rgba(240, 163, 94, 0.2);
}
.btn-primary:hover { background: #ffc184; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-small { min-height: 34px; padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-coffee {
  background: linear-gradient(180deg, #ffe578, var(--coffee));
  color: #251d05;
  box-shadow: 0 10px 28px rgba(255, 221, 87, 0.14);
}
.btn-wide { width: 100%; }
.btn-emoji { font-size: 15px; }

/* Hero */
.hero { padding: 78px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-width: 0;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(134, 217, 154, 0.12);
}
h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 760;
}
h1 span {
  background: linear-gradient(100deg, var(--accent-strong), #ffd6a8 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}
.hero-req {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}
.hero-shot {
  margin: 0;
  min-width: 0;
  position: relative;
}
.hero-copy { min-width: 0; }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -28px -20px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 163, 94, 0.2), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.hero-shot img {
  width: 100%;
  height: auto;
  position: relative;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-shot figcaption {
  margin-top: 13px;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: right;
}

/* Trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.trust-grid > div {
  background: var(--bg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-grid strong { font-size: 13px; letter-spacing: -0.01em; }
.trust-grid span { font-size: 11.5px; color: var(--muted-2); }

/* Sections */
.section { padding: 76px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 720;
}
.section-head p:not(.eyebrow), .section-lede {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(240, 163, 94, 0.18);
  margin-bottom: 15px;
}
.feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.6; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  counter-reset: none;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  position: relative;
}
.step-number {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.steps h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.6; }

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}
.catalog-grid > * { min-width: 0; }
.catalog-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.catalog-row {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 2fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.3px;
}
.catalog-row:first-child { border-top: 0; }
.catalog-head {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.game-name { font-weight: 650; font-size: 13px; }
.game-note { color: var(--muted); }
.catalog-aside { display: grid; gap: 13px; }
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01));
}
.mini-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.mini-card h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -0.015em; }
.mini-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.small-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.small-note a { color: var(--accent); }
.small-note a:hover { text-decoration: underline; }

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: start;
  min-width: 0;
}
.install-grid > * { min-width: 0; }
.code-block {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #080706;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 11px 11px 15px;
  overflow: hidden;
}
.code-block code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #e8d8c6;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  flex: 1;
}
.copy-button {
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(240, 163, 94, 0.2);
  border-radius: 8px;
  padding: 7px 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.copy-button:hover { background: rgba(240, 163, 94, 0.2); }
.requirements {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.requirements li {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 5px 9px;
}
.install-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.check-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list small { color: var(--muted-2); font-size: 10.5px; text-align: right; }
.check-list span::before { content: "✓"; color: var(--green); margin-right: 7px; font-weight: 800; }
.install-card .small-note { margin-top: 16px; }

/* Sponsor */
.sponsor-section { padding-top: 36px; }
.sponsor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  min-width: 0;
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(240, 163, 94, 0.22);
  border-radius: 22px;
  padding: 34px;
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(240, 163, 94, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.sponsor-copy h2 { margin: 0 0 10px; }
.sponsor-copy p:not(.eyebrow):not(.small-note) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 620px;
}
.sponsor-copy .small-note { margin-top: 15px; max-width: 600px; }
.sponsor-actions { display: grid; gap: 9px; }
.sponsor-note { margin: 5px 0 0; font-size: 10.8px; color: var(--muted-2); line-height: 1.55; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 15px 17px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 16px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; font-size: 12.3px; color: var(--muted); line-height: 1.65; }
details code { font-size: 11px; color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 22px;
  background: rgba(0, 0, 0, 0.18);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-grid .small-note { margin: 9px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-fine {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted-2);
}
.footer-fine p { margin: 0; max-width: 780px; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero { padding-top: 50px; }
  .hero-shot figcaption { text-align: left; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid, .install-grid, .sponsor-panel { grid-template-columns: minmax(0, 1fr); }
  .catalog-aside { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .menu-button { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 9px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: #14100e;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }
  .nav.open { display: flex; }
  .nav a { padding: 9px 10px; border-radius: 8px; }
  .nav a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav .btn { margin-top: 4px; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .catalog-row { grid-template-columns: 1fr auto; row-gap: 3px; }
  .catalog-head { display: none; }
  .catalog-row span:nth-child(3) { grid-column: 1 / -1; }
  .catalog-row .game-note { font-size: 11px; }
  .catalog-aside { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .sponsor-panel { padding: 24px; }
  .footer-grid, .footer-fine { flex-direction: column; }
  .footer-links { gap: 12px 18px; }
  .body, body { overflow-x: hidden; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 58px; }
  .nav { top: 58px; left: 12px; right: 12px; }
  .wrap { width: calc(100% - 24px); }
  .hero { padding: 36px 0 38px; }
  .hero h1 { font-size: 38px; letter-spacing: -.045em; overflow-wrap: break-word; }
  .lede { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-shot img { border-radius: 12px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div { padding: 14px 15px; }
  .section { padding: 48px 0; }
  .feature { padding: 18px; }
  .catalog-row { grid-template-columns: 1fr; gap: 4px; padding: 13px; }
  .catalog-row span:nth-child(3) { grid-column: auto; }
  .catalog-row .game-note { font-size: 11px; }
  .catalog-row .pill { justify-self: start; }
  .code-block { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px; }
  .code-block code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10.5px; }
  .copy-button { align-self: flex-start; }
  .sponsor-panel { padding: 20px; border-radius: 17px; }
  .sponsor-copy h2 { font-size: 30px; }
  .footer-links { gap: 9px 16px; }
  .footer-fine { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
