.gamath-route-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 max(20px, calc((100vw - 1380px) / 2));
  color: #dbe6f7;
  background: #08111f;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font: 600 12px/1 Inter, system-ui, sans-serif;
}
.gamath-route-nav a { color: inherit; text-decoration: none; opacity: .72; transition: opacity 180ms ease, color 180ms ease; }
.gamath-route-nav a:hover, .gamath-route-nav a[aria-current="page"] { color: #23d5e8; opacity: 1; }
.gamath-route-nav .gamath-route-brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: #fff; font: 700 16px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.04em; opacity: 1; }
.gamath-route-nav .gamath-route-brand img { display: block; border-radius: 7px; }
.gamath-route-lockup, .gamath-brand-lockup { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.gamath-route-lockup { margin-right: auto; }
.gamath-route-links { display: flex; align-items: center; gap: 18px; }
.gamath-brand-home, .gamath-brand-product { min-height: 36px; }
.gamath-brand-home { color: inherit; font: 700 15px/1 Inter, system-ui, sans-serif; letter-spacing: -.03em; }
.gamath-brand-product { color: #23d5e8; font: 700 17px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.04em; }
.gamath-switcher { position: relative; z-index: 50; margin-left: auto; }
.gamath-switcher-home { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-right: 8px; color: inherit; text-decoration: none; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; transition: color 180ms ease, transform 180ms ease; }
.gamath-switcher-home:hover { color: #fff; transform: translateY(-1px); }
.gamath-switcher-home img { display: block; border-radius: 6px; }
.gamath-brand-home, .gamath-brand-product { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.gamath-brand-home:hover, .gamath-brand-product:hover { color: #0a7f92; transform: translateY(-1px); }
.gamath-brand-home img { display: block; border-radius: 7px; }
.gamath-brand-divider { color: #93a3b9; }
.gamath-switcher summary { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 10px; border: 1px solid rgba(128,146,177,.32); border-radius: 999px; color: inherit; background: rgba(255,255,255,.08); cursor: pointer; list-style: none; font: 700 12px/1 Inter, system-ui, sans-serif; }
.gamath-switcher summary::-webkit-details-marker { display: none; }
.gamath-switcher summary img { display: block; border-radius: 6px; }
.gamath-switcher-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 150px; padding: 6px; border: 1px solid rgba(128,146,177,.28); border-radius: 14px; background: #111c2f; box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.gamath-switcher-panel a { padding: 9px 10px; border-radius: 9px; color: #dbe6f7; text-decoration: none; font: 600 12px/1.2 Inter, system-ui, sans-serif; }
.gamath-switcher-panel a:hover, .gamath-switcher-panel a[aria-current="page"] { color: #fff; background: rgba(35,213,232,.16); }
@media (max-width: 680px) {
  .gamath-route-nav { gap: 14px; min-height: 48px; padding: 0 14px; overflow-x: auto; white-space: nowrap; }
  .gamath-route-nav .gamath-route-brand { margin-right: 8px; }
  .gamath-route-links { gap: 12px; }
  .gamath-brand-home span { display: inline; }
  .gamath-brand-home { gap: 6px; font-size: 14px; }
  .gamath-brand-home img { width: 24px; height: 24px; }
  .gamath-brand-product { font-size: 15px; }
  .gamath-switcher summary { min-height: 32px; padding-inline: 8px; }
}

@view-transition { navigation: auto; }
.gamath-brand-lockup, .gamath-route-lockup { view-transition-name: gamath-product-brand; }
::view-transition-old(root) { animation: gamath-page-out 120ms linear both; }
::view-transition-new(root) { animation: gamath-page-in 240ms cubic-bezier(.23,1,.32,1) both; }
@keyframes gamath-page-out { to { opacity: 0; transform: translateY(-3px); } }
@keyframes gamath-page-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; }
}
