/* Multiplayer Node site styles, shared by every page under website/.
   The homepage's original inline styles, moved here unchanged except for the header, hero top and
   footer; the rules after "Shared components" are new (nav, subpages, contact form). */
:root {
  --bg: #0B0F14;
  --surface: #10161D;
  --land: #131A22;
  --line: #1B2530;
  --text: #F2F5F7;
  --muted: #9FB0BD;
  --faint: #7A8B9A;
  --accent: #22D3EE;
  --accent-bright: #7EEBFB;
  --warn: #C9822E;
  --warn-bright: #E8A13D;
  --btn-ink: #04222B;
  --display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-hero: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
  --fs-body: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --container: 68rem;
  --section-pad: clamp(3.5rem, 9vw, 6.5rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--fs-h2); margin-bottom: 1rem; max-width: 46rem; text-wrap: balance; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--section-pad); }
main > .section { border-top: 1px solid var(--line); }
.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.lead { color: var(--muted); max-width: 46rem; }
.lead + .lead { margin-top: 1rem; }
.tagline { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-top: 1.25rem; }
.mono { font-family: var(--mono); overflow-wrap: anywhere; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 0.6rem;
  min-height: 44px;
}
.btn:hover { background: var(--accent-bright); }

/* Hero */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5rem) var(--section-pad); }
.hero::before {
  content: "";
  position: absolute;
  inset: -8rem 0 0 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 20%, black, transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance; }
.hero .lead { margin-top: 1.25rem; }
.cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-row .quiet { color: var(--muted); text-decoration-color: var(--faint); }
.chips { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.5rem; list-style: none; }
.chips li {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
}
.chips li strong { color: var(--text); font-weight: 700; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1rem; margin-top: 2rem; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.step-num { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.steps h3 { font-size: 1.15rem; margin: 0.5rem 0; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.aside-note { margin-top: 1.5rem; color: var(--text); }
.fine-print { margin-top: 0.5rem; color: var(--faint); font-size: 0.9rem; }
.fine-print .mono { font-size: 0.85em; }

/* Latency figure */
.map-wrap { position: relative; margin-top: 2.5rem; }
.fig-latency + .lead { margin-top: 2.5rem; }
.land { fill: var(--land); shape-rendering: crispEdges; }
.city {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  fill: var(--muted);
}
.city-us { fill: var(--faint); font-size: 12px; }
.route-direct { stroke: var(--accent); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.route-detour { stroke: var(--warn); stroke-width: 2.5; fill: none; stroke-dasharray: 7 5; }
.chev { stroke: var(--faint); stroke-width: 2; fill: none; }
.node-out { fill: none; stroke-width: 2; shape-rendering: crispEdges; }
.node-in { shape-rendering: crispEdges; }
.pulse { opacity: 0; offset-rotate: 0deg; }
.pill {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  white-space: nowrap;
  text-align: center;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.25));
}
.pill strong {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.2;
}
.pill span { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.04em; }
.pill-direct { left: 66.1%; top: 55.2%; }
.pill-detour {
  left: 53.8%;
  top: 11.9%;
  border: 1px solid rgba(201, 130, 46, 0.55);
  filter: none;
}
.pill-detour strong { color: var(--warn-bright); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.pill-detour span { color: var(--muted); }

/* Origin figure */
.fig-origin { margin-top: 2.5rem; }
.fig-origin svg { max-width: 46rem; margin-inline: auto; }
.diagram-label { font-family: var(--mono); letter-spacing: 0.04em; }
.caption-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.caption-row .chip { display: inline-block; width: 10px; height: 10px; margin-right: 0.5rem; }
.chip-player { background: var(--accent); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2rem; }
.tier-premium { border-color: var(--accent); }
.tier h3 { font-size: 1.3rem; }
.tier .tier-tag { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.tier ul { list-style: none; margin-top: 1.5rem; }
.tier li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.tier li .price { font-family: var(--mono); font-weight: 700; color: var(--text); white-space: nowrap; }
.tier .tier-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; font-style: italic; }
.pricing-notes { margin-top: 2rem; max-width: 38rem; font-size: 0.9rem; }
.pricing-notes .example { color: var(--muted); margin-bottom: 0.5rem; }
.pricing-notes .founding { color: var(--text); }
.pricing-notes .terms { color: var(--muted); margin-top: 0.5rem; }
.pricing-cta { margin-top: 2rem; }
.compare { margin-top: 3.5rem; }
.compare h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare table { border-collapse: collapse; width: 100%; min-width: 55rem; font-size: 0.9rem; }
.compare th, .compare td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--display); font-weight: 700; color: var(--text); white-space: nowrap; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare td { color: var(--muted); }
.compare .us { background: rgba(34, 211, 238, 0.06); color: var(--text); }
.compare .mono { white-space: nowrap; }
.compare-note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--faint); }

/* FAQ */
.faq h3 { font-size: 1.15rem; margin-top: 1.75rem; }

/* Stack */
.stack .chips { margin-top: 1.5rem; }

/* Credibility */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 2.5rem; align-items: center; margin-top: 1rem; }
.cred-grid figure img { border: 1px solid var(--line); border-radius: 8px; }
.cred-grid figcaption { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); margin-top: 0.6rem; }
.partners { margin-top: 4rem; }
.partners-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
.partners-row { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 2.2vw, 1.75rem); flex-wrap: wrap; }
.partners-row img { width: auto; opacity: 0.7; }
.logo-datapacket { height: 22px; }
.logo-i3d { height: 26px; }
.logo-azure { height: 20px; }
.logo-akamai { height: 58px; }
.logo-cloudflare { height: 30px; }
.logo-do { height: 26px; }
.logo-bunny { height: 30px; }

/* CTA banner */
.banner {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.banner h2, .banner .lead { margin-inline: auto; }
.banner .btn { margin-top: 1.75rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--faint); font-size: 0.9rem; }
footer .container { display: grid; gap: 1.25rem; }
footer a { color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap; }
.footer-links, .footer-langs { display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; }

/* Motion (all animation lives behind this gate) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Routes are hidden pre-animation only when JS is running (html.js),
     so a blocked script still leaves the static map fully drawn. */
  .js .fig-latency .route-direct { stroke-dasharray: 100; stroke-dashoffset: 101; }
  .js .fig-latency.in-view .route-direct { animation: draw-route 1.8s ease-out forwards; }
  .js .fig-latency .route-detour { opacity: 0; }
  .js .fig-latency.in-view .route-detour { animation: fade-in 0.6s ease-out 0.9s forwards; }
  @supports (offset-path: path("M0 0 L1 1")) {
    .fig-latency.in-view .pulse-direct {
      offset-path: path("M430,430 Q660,320 790,120");
      animation: pulse-direct 4.8s linear 2s infinite;
    }
    .fig-latency.in-view .pulse-detour {
      offset-path: path("M430,430 Q250,340 185,190 Q195,135 235,95 Q520,20 790,120");
      animation: pulse-detour 4.8s linear 2s infinite;
    }
  }
}
@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
/* Both pulses travel at the same speed; the detour path is 2.16x longer,
   so its pulse takes 2.16x longer to arrive. Same physics, longer road. */
@keyframes pulse-direct {
  0% { offset-distance: 0%; opacity: 0; }
  2% { opacity: 1; }
  37.5% { offset-distance: 100%; opacity: 1; }
  43% { opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes pulse-detour {
  0% { offset-distance: 0%; opacity: 0; }
  2% { opacity: 1; }
  81% { offset-distance: 100%; opacity: 1; }
  87% { opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (max-width: 768px) {
  .fig-latency .city { font-size: 24px; }
  .fig-latency .city-us, .fig-latency .chev { display: none; }
}
@media (max-width: 720px) {
  .brand img { height: 34px; }
}
@media (max-width: 640px) {
  .fig-origin .diagram-label { font-size: 28px; }
  .fig-origin .sub-label { font-size: 22px; }
  .fig-origin .fw-label { display: none; }
  .pill {
    position: static;
    transform: none;
    display: block;
    white-space: normal;
    text-align: left;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.08);
    filter: none;
  }
  .pill-direct { width: 58%; min-width: 15rem; }
  .pill-detour {
    width: 100%;
    border-left-color: var(--warn);
    background: rgba(201, 130, 46, 0.08);
  }
}
@media (max-width: 420px) {
  .btn { display: block; text-align: center; }
  .cta-row { gap: 1rem; }
}

/* ---- Shared components ---- */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--accent);
  color: var(--btn-ink);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }
summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

/* Site header: brand left, nav right; a Menu button below 1100px when JS runs */
.site-header { position: relative; z-index: 5; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; opacity: 0.9; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 1.5rem; }
.site-nav a, .nav-games summary { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .nav-games summary:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-games { position: relative; }
.nav-games summary { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; list-style: none; }
.nav-games summary::-webkit-details-marker { display: none; }
.nav-games summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-30%) rotate(45deg);
}
.nav-games details[open] > summary::after { transform: translateY(20%) rotate(-135deg); }
.nav-sub {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: -0.75rem;
  min-width: 14rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.nav-sub a { display: block; padding: 0.6rem 0.75rem; border-radius: 6px; color: var(--text); }
.nav-sub a:hover { background: rgba(34, 211, 238, 0.08); }
.site-nav .btn { color: var(--btn-ink); font-size: 0.95rem; padding: 0.55rem 1.1rem; }
.nav-langs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.nav-langs span { color: var(--faint); }
.nav-langs a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-toggle { display: none; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

/* Hero additions */
.hero .proof {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.2vw + 0.95rem, 1.75rem);
  color: var(--accent);
  margin-top: 1rem;
}
.hero-teaser { margin-top: 1.25rem; font-size: 0.95rem; }
.hero-sub { padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.hero-sub h1 { font-size: clamp(2.1rem, 3.2vw + 1rem, 3.25rem); }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.breadcrumbs a { color: var(--muted); }

/* Booster comparison (homepage) */
.mini-compare { margin-top: 2rem; max-width: 46rem; }
.mini-compare table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.mini-compare th, .mini-compare td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.mini-compare thead th { font-family: var(--display); font-weight: 700; color: var(--text); }
.mini-compare tbody tr { border-top: 1px solid var(--line); }
.mini-compare tbody th { font-weight: 400; color: var(--muted); }
.mini-compare td { color: var(--muted); }
.mini-compare .us { background: rgba(34, 211, 238, 0.06); color: var(--text); }

/* Game cards (homepage) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1rem; margin-top: 2rem; list-style: none; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.card:hover, .card:focus-within { border-color: var(--accent); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { display: block; margin-top: 1rem; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }

/* Subpage content */
.section h3.sub { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.policy h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.policy h2:first-child { margin-top: 0; }
.list { color: var(--muted); max-width: 46rem; margin-top: 1rem; padding-left: 1.25rem; }
.list li + li { margin-top: 0.5rem; }
.list strong { color: var(--text); }
ul.steps.features { margin-top: 2rem; }
.steps.four { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.steps + .lead, .list + .lead, .cards + .lead { margin-top: 1.5rem; }

/* Contact form */
.trial-form { display: grid; gap: 1.4rem; max-width: 42rem; margin-top: 2.5rem; }
.form-row { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field > label, .field > .label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.field .req { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--accent); margin-left: 0.4rem; }
.field .hint { font-size: 0.85rem; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--warn-bright); }
.field .error { color: var(--warn-bright); font-size: 0.875rem; }
.field-check { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text); font-size: 0.95rem; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); flex-shrink: 0; }
.form-actions { display: grid; gap: 0.75rem; justify-items: start; }
button.btn { border: 0; cursor: pointer; }
.form-note { font-size: 0.875rem; color: var(--faint); max-width: 42rem; }
.form-fallback { margin-top: 2rem; color: var(--muted); }
.form-status {
  margin-top: 2rem;
  max-width: 42rem;
  border: 1px solid var(--accent);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
}
.form-status h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.form-status p { color: var(--muted); }
.form-status p + p { margin-top: 0.5rem; }
.form-status textarea {
  width: 100%;
  min-height: 11rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.form-status .btn { margin-top: 1rem; }

/* Narrow screens: the nav collapses behind the Menu button (only when JS runs; without it the
   links wrap under the brand) */
@media (max-width: 1100px) {
  .bar { flex-wrap: wrap; }
  .nav-list { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.5rem 0.95rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
  }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.75rem;
    padding: 0.25rem 1rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .js .nav-list > li { border-bottom: 1px solid var(--line); }
  .js .nav-list > li:last-child { border-bottom: 0; }
  .js .nav-list > li > a:not(.btn), .js .nav-games summary { display: flex; align-items: center; min-height: 48px; }
  .js .nav-sub { position: static; min-width: 0; padding: 0 0 0.5rem 0.75rem; background: none; border: 0; box-shadow: none; }
  .js .nav-list .btn { display: block; text-align: center; margin: 0.9rem 0; }
  .js .nav-langs { min-height: 48px; }
}
@media (max-width: 480px) {
  .brand { gap: 0.75rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .nav-toggle { padding: 0.5rem 0.8rem; }
  .mini-compare th, .mini-compare td { padding: 0.6rem 0.65rem; font-size: 0.875rem; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1.1rem; }
  .brand img { height: 28px; }
}
