:root {
  color-scheme: dark;
  --bg: #202020;
  --bg-alt: #262626;
  --panel: #2b2b2b;
  --panel-2: #343434;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #ffc83d;
  --accent-dark: #cf9b12;
  --gold: #ffc83d;
  --sky-top: #2b2b2b;
  --sky-bottom: #404040;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.15vw + 0.96rem, 1.0625rem);
  --fs-lg: clamp(1.1rem, 0.5vw + 1rem, 1.25rem);
  --fs-xl: clamp(1.15rem, 1vw + 1rem, 1.4rem);
  --fs-h1: clamp(1.6rem, 5.2vw, 3.25rem);
  --fs-h2: clamp(0.95rem, 1.6vw + 0.55rem, 1.5rem);
  --fs-h3: clamp(1.1rem, 0.4vw + 1.02rem, 1.25rem);
  --fs-h3-pixel: clamp(0.8rem, 1vw + 0.45rem, 1rem);
  --fs-brand: 0.8rem;
  --fs-stat: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-icon: 2rem;
  --fs-plus: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { text-wrap: balance; }
img { max-width: 100%; display: block; }
a, button { -webkit-tap-highlight-color: rgba(255, 200, 61, 0.18); }
button, .btn, .filter, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #1f1f1f; font-weight: 800;
  padding: 10px 18px; border-radius: 10px; transition: top .15s;
}
.skip-link:focus { top: 12px; text-decoration: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--font-code);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(1140px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }
.center { text-align: center; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(32, 32, 32, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-pixel); font-size: var(--fs-brand); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; image-rendering: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; min-width: 44px; min-height: 44px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #1f1f1f;
  font-weight: 800; font-family: inherit; font-size: var(--fs-base); line-height: 1.2;
  padding: 13px 24px; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 5px 0 var(--accent-dark), 0 10px 20px rgba(255, 200, 61, 0.18);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.btn-small { padding: 8px 16px; font-size: var(--fs-sm); box-shadow: 0 3px 0 var(--accent-dark); border-radius: 10px; }
.btn-large { padding: 17px 34px; font-size: var(--fs-lg); }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  padding: 70px 0 130px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-sm); margin: 0 0 12px; }
.hero h1 {
  font-family: var(--font-pixel); font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.2; margin: 0 0 18px;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.hero h1 span { color: var(--accent); }
.tagline { font-size: var(--fs-xl); font-weight: 800; line-height: 1.35; margin: 0 0 10px; }
.lead { color: #c9c9c9; max-width: 540px; margin: 0 0 28px; font-size: var(--fs-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }

.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 12px 28px; justify-content: start; }
.stats li { display: flex; flex-direction: column; min-width: 0; }
.stats strong { font-size: var(--fs-stat); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.stats span { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }

.hero-art { position: relative; }
.hero-frame {
  border: 5px solid #1a1a1a; border-radius: 14px; overflow: hidden;
  box-shadow: 8px 8px 0 rgba(20, 20, 20, .4), var(--shadow);
  background: #1a1a1a;
  transform: rotate(1.5deg);
  transition: transform .4s;
}
.hero-frame:hover { transform: rotate(0deg) scale(1.02); }
.hero-frame img { width: 100%; height: auto; }

.floaters .block {
  position: absolute; width: 38px; height: 38px; border: 3px solid rgba(0,0,0,.45);
  animation: float 5s ease-in-out infinite;
}
.block.b1 { top: -22px; left: -18px; background: linear-gradient(#f9ca59 30%, #f9ca59 30%); }
.block.b2 { bottom: 30px; right: -20px; background: var(--gold); animation-delay: -1.6s; width: 30px; height: 30px; }
.block.b3 { bottom: -26px; left: 12%; background: #8f98a3; animation-delay: -3s; width: 26px; height: 26px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }

.clouds i {
  position: absolute; height: 24px; background: rgba(255,255,255,.14);
  box-shadow: 24px -12px 0 rgba(255,255,255,.14), 48px 0 0 rgba(255,255,255,.14);
  width: 48px; animation: drift 60s linear infinite;
}
.clouds i:nth-child(1) { top: 14%; left: -10%; }
.clouds i:nth-child(2) { top: 38%; left: -30%; animation-duration: 90s; animation-delay: -30s; }
.clouds i:nth-child(3) { top: 62%; left: -20%; animation-duration: 75s; animation-delay: -55s; }
@keyframes drift { to { transform: translateX(140vw); } }

.grass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 23px; z-index: 1;
  background:
    linear-gradient(#7d7d7d 0 16px, #616161 16px 22px, #202020 22px 100%);
}

.hero-mons { position: absolute; left: 0; right: 0; bottom: 25px; height: 76px; z-index: 2; pointer-events: none; }
.hero-mons .mon {
  position: absolute; bottom: 0; left: var(--x); width: 72px; height: 72px; margin-left: -36px;
  image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25));
  animation: hop 2.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes hop {
  0%, 100% { transform: translateY(0) scaleX(var(--flip, 1)); }
  50% { transform: translateY(-10px) scaleX(var(--flip, 1)); }
}
.dex-title { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 34px 0 10px; }
.dex { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dex li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 10px 6px 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, border-color .2s;
}
.dex li:hover { transform: translateY(-4px); border-color: rgba(255, 200, 61, .45); }
.dex img { width: 80px; height: 80px; image-rendering: pixelated; }
.dex .no { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; }
.dex .nm { font-size: var(--fs-sm); font-weight: 800; }

.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title { font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-h2); margin: 0 0 18px; line-height: 1.45; }
.section-title em { color: var(--accent); font-style: normal; }
.section-sub { color: var(--muted); max-width: 720px; margin: 0 auto 34px; font-size: var(--fs-lg); }
.sub-title { font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-h3-pixel); line-height: 1.5; margin: 56px 0 18px; }
.note { color: var(--muted); font-size: var(--fs-sm); margin-top: 26px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.chip { background: var(--panel); border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }

.grid { display: grid; gap: 20px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 38px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 200, 61, .45); box-shadow: var(--shadow); }
.card .icon { font-size: var(--fs-icon); width: 58px; height: 58px; display: grid; place-items: center; background: var(--panel-2); border-radius: 14px; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: var(--fs-base); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 46%), 1fr)); gap: 14px; margin-top: 32px; }
.specs div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.specs span { display: block; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; }
.specs strong { font-size: var(--fs-base); font-weight: 800; }

.video { margin-top: 28px; position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 5px solid #1a1a1a; box-shadow: 8px 8px 0 rgba(20,20,20,.4); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s; }
.video-play:hover img { opacity: 1; transform: scale(1.03); }
.video-play:focus-visible { outline-offset: -8px; }
.play-icon {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  background: var(--accent); border-radius: 50%; box-shadow: 0 5px 0 var(--accent-dark), 0 10px 30px rgba(0,0,0,.5);
}
.play-icon::after {
  content: ""; position: absolute; left: 31px; top: 24px;
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #1f1f1f;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
#modSearch {
  flex: 1 1 260px; max-width: 340px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: var(--fs-base);
  -webkit-appearance: none; appearance: none;
}
#modSearch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; transition: .15s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--accent); color: #1f1f1f; border-color: var(--accent); }

.grid.mods { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.mod {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  color: var(--text); transition: .18s;
}
.mod:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); background: var(--panel-2); }
.mod h3 { margin: 0; font-size: var(--fs-base); font-weight: 800; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mod h3 svg { flex: none; opacity: .5; }
.mod p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.mod .cat { align-self: flex-start; margin-top: 4px; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); }
.empty { text-align: center; color: var(--muted); margin-top: 24px; }

.grid.packs { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.pack { background: var(--panel); border: 1px dashed rgba(255,255,255,.18); border-radius: 14px; padding: 16px 18px; color: var(--text); font-weight: 700; font-size: var(--fs-base); transition: .18s; }
.pack:hover { text-decoration: none; border-color: var(--gold); color: var(--gold); }

.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; margin-top: 36px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-h3); font-weight: 800; }
.tag { background: var(--accent); color: #1f1f1f; font-size: var(--fs-xs); padding: 3px 10px; border-radius: 999px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  background: var(--panel-2); border: 2px solid var(--accent); border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); color: var(--accent);
}

.code {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #191919; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
.code code { background: none; color: var(--accent); font-size: var(--fs-base); word-break: break-all; }

.grid.servers { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.server {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  color: var(--text); font-weight: 800; font-size: var(--fs-base); transition: .18s;
}
.server:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); }
.server span { color: var(--accent); }

.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: var(--fs-base); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: var(--fs-plus); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.cta { padding: 80px 0; background: linear-gradient(135deg, #3a3a3a, #252525); border-top: 1px solid var(--line); }
.cta h2 { font-family: var(--font-pixel); font-weight: 400; font-size: var(--fs-h2); line-height: 1.6; margin: 0 0 28px; }

.footer { background: #191919; padding: 40px 0; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); padding: 6px 0; }
.legal { color: #8c8c8c; font-size: var(--fs-xs); line-height: 1.7; margin: 0; }

.section:not(#about), .cta, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.js:not(.reveal-fallback) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js:not(.reveal-fallback) .reveal.in { opacity: 1; transform: none; }
.stat-hidden { display: none !important; }

html:not(.js) .video-play,
html:not(.js) .toolbar,
html:not(.js) .stats li:not(:first-child) { display: none; }

.hero.is-offscreen *,
.hero.is-offscreen *::before,
.hero.is-offscreen *::after { animation-play-state: paused !important; }

@media (hover: none) {
  .btn:hover { transform: none; filter: none; }
  .hero-frame:hover { transform: rotate(1.5deg); }
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .dex li:hover, .server:hover { transform: none; }
  .dex li:hover { border-color: var(--line); }
  .mod:hover { transform: none; background: var(--panel); border-color: var(--line); }
  .server:hover { border-color: var(--line); }
  .pack:hover { border-color: rgba(255, 255, 255, .18); color: var(--text); }
  .video-play:hover img { transform: none; opacity: .85; }
  .filter:not(.active):hover { color: var(--muted); }
  a:hover { text-decoration: none; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 44px 0 120px; }
  .hero-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { background: rgba(32, 32, 32, 0.98); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 12px 6% 18px; gap: 4px; border-bottom: 1px solid var(--line);
    display: none;
    max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; font-size: var(--fs-base); }
  .nav-links .btn { justify-content: center; margin-top: 8px; padding: 12px 16px; }
  .section { padding: 64px 0; }
  .filters .filter, .btn-small { min-height: 40px; }
}

@media (max-width: 480px) {
  html { scroll-padding-top: 70px; }
  .hero-actions { gap: 12px; margin-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stats { gap: 14px 16px; }
  .card, .panel { padding: 22px; }
  .section { padding: 52px 0; }
  .section-sub { margin-bottom: 26px; }
  .sub-title { margin-top: 44px; }
  .hero-mons .mon { width: 56px; height: 56px; margin-left: -28px; }
  .hero-frame { border-width: 4px; box-shadow: 5px 5px 0 rgba(20, 20, 20, .4), var(--shadow); }
  .floaters .block { display: none; }
  .dex { gap: 10px; }
  .dex li { width: calc((100% - 20px) / 3); min-width: 0; padding: 8px 4px 6px; }
  .dex img { width: 100%; max-width: 72px; height: auto; aspect-ratio: 1; }
  .dex .nm { font-size: var(--fs-xs); }
  .toolbar { flex-direction: column; align-items: stretch; }
  #modSearch { flex: none; width: 100%; max-width: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(50% - 50vw); padding: 2px calc(50vw - 50%) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; white-space: nowrap; }
  .specs { gap: 10px; }
  .specs div { padding: 14px 16px; }
  .play-icon { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .play-icon::after { left: 25px; top: 19px; border-width: 12px 0 12px 20px; }
  .video { border-width: 4px; box-shadow: 5px 5px 0 rgba(20, 20, 20, .4); }
  .code { padding: 14px 16px; }
  .code .btn { width: 100%; justify-content: center; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .btn-large { padding: 15px 22px; width: 100%; justify-content: center; text-align: center; }
  .footer { padding: 32px 0; }
  .footer-links { gap: 6px 18px; }
}

html, body { overflow-x: clip; }

.nav-inner,
.container { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.footer { padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px)); }

@media (pointer: coarse) {
  .nav-links a:not(.btn),
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .filter { min-height: 44px; padding-inline: 18px; }
  .faq summary { min-height: 52px; align-items: center; }
  .btn-small { min-height: 44px; }
  .mod, .server, .pack { min-height: 56px; }
  .video-play:focus-visible { outline-offset: -6px; }
}

@media (max-width: 880px) {
  .clouds, .floaters { display: none; }
  .hero-mons .mon { animation-duration: 3.2s; }
  .hero-frame { transform: none; }
  .hero-frame:hover { transform: none; }
  .hero-text { text-align: left; }
  .lead { max-width: none; }
  .nav-links { padding-left: max(6%, env(safe-area-inset-left)); padding-right: max(6%, env(safe-area-inset-right)); }
}

@media (max-width: 480px) {
  :root { --fs-h2: clamp(0.8rem, 3vw + 0.25rem, 1.1rem); }
  .hero { padding: 32px 0 108px; }
  .hero h1 { margin-bottom: 14px; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }
  .tagline { font-size: 1.05rem; }
  .lead { font-size: 1rem; margin-bottom: 22px; }
  .eyebrow { font-size: var(--fs-xs); }
  .section-title { margin-bottom: 14px; }
  .section-sub { font-size: 1rem; }
  .card .icon { width: 50px; height: 50px; font-size: 1.7rem; margin-bottom: 12px; }
  .grid.cards { margin-top: 28px; gap: 14px; }
  .grid.mods { gap: 10px; }
  .mod { padding: 14px 16px; }
  .grid.servers, .grid.packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .server, .pack { padding: 14px; font-size: var(--fs-sm); }
  .install-grid { margin-top: 26px; gap: 16px; }
  .steps li { padding-left: 42px; }
  .code { gap: 12px; }
  .code code { font-size: var(--fs-sm); }
  .cta { padding: 56px 0; }
  .cta h2 { line-height: 1.7; }
  .nav-inner { height: 60px; }
  .nav-links { top: 60px; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  :root { --fs-brand: 0.7rem; --fs-stat: 1.15rem; }
  .container, .container.narrow { width: 94%; }
  .brand img { width: 30px; height: 30px; }
  .grid.servers, .grid.packs { grid-template-columns: 1fr; }
  .stats { gap: 12px 12px; }
  .dex li { width: calc((100% - 10px) / 2); }
  .btn { padding: 12px 18px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 28px 0 100px; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js:not(.reveal-fallback) .reveal { opacity: 1; transform: none; }
}