:root {
  --site-chrome-ink: #0a0e1a;
  --site-chrome-panel: #141c2f;
  --site-chrome-panel-strong: #08111d;
  --site-chrome-text: #ffffff;
  --site-chrome-muted: #dbeafe;
  --site-chrome-accent: #00ced1;
  --site-chrome-accent-2: #2cff05;
  --site-chrome-line: rgba(0, 206, 209, 0.28);
  --site-chrome-glow: rgba(0, 206, 209, 0.3);
  --site-chrome-glow-2: rgba(44, 255, 5, 0.3);
}

body.theme-pirate,
body[data-site-theme="pirate"] {
  --site-chrome-ink: #06111d;
  --site-chrome-panel: rgba(6, 17, 29, 0.96);
  --site-chrome-panel-strong: rgba(6, 17, 29, 0.98);
  --site-chrome-text: #f4ead2;
  --site-chrome-muted: #c7d2d8;
  --site-chrome-accent: #f5c76b;
  --site-chrome-accent-2: #14b8a6;
  --site-chrome-line: rgba(245, 199, 107, 0.32);
  --site-chrome-glow: rgba(245, 199, 107, 0.12);
  --site-chrome-glow-2: rgba(20, 184, 166, 0.14);
}

body {
  --site-top-nav-height: 60px;
  --site-bottom-nav-height: 60px;
  --site-mobile-bottom-nav-height: 76px;
}

body > header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: var(--site-top-nav-height);
  background: transparent;
  box-shadow: none;
  z-index: 1000;
  pointer-events: none;
}

body > header .nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  height: var(--site-top-nav-height);
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

body > header .top-left,
body > header .top-right {
  position: fixed;
  top: 0;
  width: 40%;
  height: var(--site-top-nav-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 30px;
  background: var(--site-chrome-panel);
  box-shadow:
    0 0 18px var(--site-chrome-glow),
    inset 0 0 12px rgba(0, 206, 209, 0.12);
  pointer-events: auto;
  transition: box-shadow 0.25s ease;
}

body.theme-pirate > header .top-left,
body.theme-pirate > header .top-right,
body[data-site-theme="pirate"] > header .top-left,
body[data-site-theme="pirate"] > header .top-right {
  border: 0 !important;
  background: var(--site-chrome-panel) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24) !important;
}

body > header .top-left {
  left: 0;
  justify-content: flex-start;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

body > header .top-right {
  right: 0;
  justify-content: flex-end;
  clip-path: polygon(15% 100%, 100% 100%, 100% 0, 0 0);
}

body > header .nav__menu,
.bottom-bar .nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

body > header .nav__menu-left {
  padding-left: 0;
}

body > header .nav__menu-right {
  padding-right: 0;
}

@media (min-width: 993px) {
  body > header .top-left .nav__menu,
  body > header .top-right .nav__menu {
    width: auto;
    justify-content: flex-start;
    gap: 38.72px;
  }

  .bottom-bar .nav__menu--left,
  .bottom-bar .nav__menu--right {
    box-sizing: border-box;
    width: auto;
    justify-content: flex-start;
    gap: 38.72px;
  }
}

body.theme-pirate > header .top-left .nav__menu,
body.theme-pirate > header .top-right .nav__menu,
body.theme-pirate .bottom-bar .nav__menu,
body[data-site-theme="pirate"] > header .top-left .nav__menu,
body[data-site-theme="pirate"] > header .top-right .nav__menu,
body[data-site-theme="pirate"] .bottom-bar .nav__menu {
  position: relative;
  z-index: 5;
  background: transparent !important;
}

body > header .notch-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

body.theme-pirate > header .notch-border .hover-line,
body.theme-pirate > header .top-left:hover .notch-border .hover-line,
body.theme-pirate > header .top-right:hover .notch-border .hover-line,
body[data-site-theme="pirate"] > header .notch-border .hover-line,
body[data-site-theme="pirate"] > header .top-left:hover .notch-border .hover-line,
body[data-site-theme="pirate"] > header .top-right:hover .notch-border .hover-line {
  stroke: var(--site-chrome-accent) !important;
  stroke-width: 2px !important;
  vector-effect: non-scaling-stroke;
  filter: none !important;
}

body > header .nav__brand {
  position: fixed;
  left: 50%;
  top: 5px;
  z-index: 1001;
  display: inline-flex;
  min-width: 140px;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--site-chrome-text);
  text-decoration: none;
  transform: translateX(-50%);
  pointer-events: none;
}

body > header .brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 50px;
  color: var(--site-chrome-text);
  overflow: hidden;
}

body > header .brand-logo::before,
body > header .brand-logo::after {
  content: none;
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--site-chrome-accent), var(--site-chrome-accent-2));
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

body > header .brand-logo::before {
  top: 0;
  transform: translateX(-100%);
}

body > header .brand-logo::after {
  bottom: 0;
  transform: translateX(100%);
}

body > header .nav__brand:hover .brand-logo::before,
body > header .nav__brand:hover .brand-logo::after {
  opacity: 1;
  transform: translateX(0);
}

body > header .nav__link,
.bottom-bar .nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--site-chrome-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0 6px var(--site-chrome-glow);
  cursor: pointer;
  overflow: hidden;
  transform: skewX(-20deg);
  transition: color 0.2s ease, transform 0.2s ease;
}

body.theme-pirate > header .nav__link,
body.theme-pirate .bottom-bar .nav__link,
body[data-site-theme="pirate"] > header .nav__link,
body[data-site-theme="pirate"] .bottom-bar .nav__link {
  font-family: inherit;
  font-weight: 500;
  text-shadow: none;
}

body.theme-pirate > header .nav__link span,
body.theme-pirate .bottom-bar .nav__link span,
body[data-site-theme="pirate"] > header .nav__link span,
body[data-site-theme="pirate"] .bottom-bar .nav__link span {
  color: var(--site-chrome-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

body > header .nav__link span,
.bottom-bar .nav__link span {
  position: relative;
  z-index: 3;
  display: inline-block;
  color: currentColor;
  transform: skewX(20deg);
  transition: color 0.2s ease;
}

body > header .nav__link .line-top,
body > header .nav__link .line-bottom,
.bottom-bar .nav__link .line-top,
.bottom-bar .nav__link .line-bottom {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-chrome-accent), var(--site-chrome-accent-2));
  pointer-events: none;
  transition: width 0.3s ease;
}

body.theme-pirate > header .nav__link .line-top,
body.theme-pirate > header .nav__link .line-bottom,
body.theme-pirate .bottom-bar .nav__link .line-top,
body.theme-pirate .bottom-bar .nav__link .line-bottom,
body[data-site-theme="pirate"] > header .nav__link .line-top,
body[data-site-theme="pirate"] > header .nav__link .line-bottom,
body[data-site-theme="pirate"] .bottom-bar .nav__link .line-top,
body[data-site-theme="pirate"] .bottom-bar .nav__link .line-bottom {
  height: 1px;
  background: linear-gradient(90deg, var(--site-chrome-accent), var(--site-chrome-accent-2)) !important;
  box-shadow: none !important;
}

body > header .nav__link .line-top,
.bottom-bar .nav__link .line-top {
  top: 0;
  left: 0;
}

body > header .nav__link .line-bottom,
.bottom-bar .nav__link .line-bottom {
  right: 0;
  bottom: 0;
}

body > header .nav__link .shine,
.bottom-bar .nav__link .shine {
  position: absolute;
  top: 0;
  left: -150%;
  z-index: 1;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent 20%, var(--site-chrome-accent) 45%, var(--site-chrome-accent-2) 55%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  transform: skewX(20deg);
}

body > header .nav__link:hover,
body > header .nav__link:focus-visible,
.bottom-bar .nav__link:hover,
.bottom-bar .nav__link:focus-visible {
  color: var(--site-chrome-accent);
  outline: 0;
}

body.theme-pirate > header .nav__link:hover,
body.theme-pirate > header .nav__link:focus-visible,
body.theme-pirate .bottom-bar .nav__link:hover,
body.theme-pirate .bottom-bar .nav__link:focus-visible,
body[data-site-theme="pirate"] > header .nav__link:hover,
body[data-site-theme="pirate"] > header .nav__link:focus-visible,
body[data-site-theme="pirate"] .bottom-bar .nav__link:hover,
body[data-site-theme="pirate"] .bottom-bar .nav__link:focus-visible {
  background: rgba(245, 199, 107, 0.08);
  color: var(--site-chrome-accent);
}

body.theme-pirate > header .nav__link:hover span,
body.theme-pirate > header .nav__link:focus-visible span,
body.theme-pirate .bottom-bar .nav__link:hover span,
body.theme-pirate .bottom-bar .nav__link:focus-visible span,
body[data-site-theme="pirate"] > header .nav__link:hover span,
body[data-site-theme="pirate"] > header .nav__link:focus-visible span,
body[data-site-theme="pirate"] .bottom-bar .nav__link:hover span,
body[data-site-theme="pirate"] .bottom-bar .nav__link:focus-visible span {
  color: var(--site-chrome-accent) !important;
}

body.theme-pirate > header .nav__link .shine,
body.theme-pirate .bottom-bar .nav__link .shine,
body[data-site-theme="pirate"] > header .nav__link .shine,
body[data-site-theme="pirate"] .bottom-bar .nav__link .shine {
  display: none;
}

body > header .nav__link:hover .line-top,
body > header .nav__link:hover .line-bottom,
body > header .nav__link:focus-visible .line-top,
body > header .nav__link:focus-visible .line-bottom,
.bottom-bar .nav__link:hover .line-top,
.bottom-bar .nav__link:hover .line-bottom,
.bottom-bar .nav__link:focus-visible .line-top,
.bottom-bar .nav__link:focus-visible .line-bottom {
  width: 100%;
}

body > header .nav__link:hover .shine,
body > header .nav__link:focus-visible .shine,
.bottom-bar .nav__link:hover .shine,
.bottom-bar .nav__link:focus-visible .shine {
  animation: site-chrome-shine 1.5s linear infinite;
  opacity: 0.15;
}

@keyframes site-chrome-shine {
  from {
    left: -150%;
  }

  to {
    left: 100%;
  }
}

.bottom-bar-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--site-bottom-nav-height);
  background: transparent;
  pointer-events: auto;
}

.bottom-bar {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 0;
  overflow: hidden;
  border: 1px solid var(--site-chrome-line);
  background: var(--site-chrome-panel-strong);
  box-shadow:
    0 0 12px var(--site-chrome-glow),
    inset 0 0 8px rgba(0, 206, 209, 0.12);
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0, 64.5% 0, 50% 320%, 35.5% 0);
}

body.theme-pirate .bottom-bar,
body[data-site-theme="pirate"] .bottom-bar {
  border: 0 !important;
  background: var(--site-chrome-panel-strong) !important;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.24) !important;
}

.bottom-bar .nav__menu--left {
  padding-left: 30px;
}

.bottom-bar .nav__menu--right {
  padding-right: 30px;
}

.bottom-bar-border {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--site-chrome-line);
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(0 0 1px var(--site-chrome-glow));
}

body.theme-pirate .bottom-bar-border,
body.theme-pirate .bottom-bar-border.hover-glow,
body[data-site-theme="pirate"] .bottom-bar-border,
body[data-site-theme="pirate"] .bottom-bar-border.hover-glow {
  stroke: var(--site-chrome-accent) !important;
  filter: none !important;
}

body.theme-pirate .bottom-bar-border path,
body[data-site-theme="pirate"] .bottom-bar-border path {
  stroke: var(--site-chrome-accent) !important;
  stroke-width: 2px !important;
  vector-effect: non-scaling-stroke;
}

body.theme-pirate > header .notch-border stop:first-child,
body.theme-pirate .bottom-bar-border stop:first-child,
body.theme-pirate #cyberGradient stop:first-child,
body.theme-pirate #bottomGradient stop:first-child,
body.theme-pirate #bottomGradient stop:last-child,
body[data-site-theme="pirate"] > header .notch-border stop:first-child,
body[data-site-theme="pirate"] .bottom-bar-border stop:first-child,
body[data-site-theme="pirate"] #cyberGradient stop:first-child,
body[data-site-theme="pirate"] #bottomGradient stop:first-child,
body[data-site-theme="pirate"] #bottomGradient stop:last-child {
  stop-color: var(--site-chrome-accent) !important;
}

body.theme-pirate > header .notch-border stop:last-child,
body.theme-pirate .bottom-bar-border stop:nth-child(2),
body.theme-pirate #cyberGradient stop:last-child,
body.theme-pirate #bottomGradient stop:nth-child(2),
body[data-site-theme="pirate"] > header .notch-border stop:last-child,
body[data-site-theme="pirate"] .bottom-bar-border stop:nth-child(2),
body[data-site-theme="pirate"] #cyberGradient stop:last-child,
body[data-site-theme="pirate"] #bottomGradient stop:nth-child(2) {
  stop-color: var(--site-chrome-accent-2) !important;
}

.bottom--bar {
  display: none;
}

.bottom--bar .nav-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--site-chrome-muted);
  text-decoration: none;
}

.bottom--bar .nav-btn svg,
.bottom--bar .nav-btn svg path,
.bottom--bar .nav-btn svg circle,
.bottom--bar .nav-btn svg line {
  fill: currentColor;
  stroke: currentColor;
}

.bottom--bar .nav-btn svg path[stroke="#0f172a"] {
  stroke: var(--site-chrome-ink);
}

.bottom--bar .nav-btn.active,
.bottom--bar .nav-btn:hover,
.bottom--bar .nav-btn:focus-visible {
  color: var(--site-chrome-accent);
  outline: 0;
}

.mobile-nav-toggle,
.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  z-index: 1001;
  border: 0;
  background: transparent;
  color: var(--site-chrome-accent);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-nav-toggle {
  top: 20px;
  right: 20px;
}

.mobile-sidebar-toggle {
  top: 20px;
  left: 20px;
}

@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: block;
  }

  body > header .top-left,
  body > header .top-right {
    right: -300px;
    left: auto;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 80px 20px 20px;
    clip-path: none;
    transition: transform 0.3s ease;
  }

  body > header .top-left.active,
  body > header .top-right.active {
    transform: translateX(-300px);
  }

  body > header .nav__menu,
  body > header .nav__menu-left,
  body > header .nav__menu-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body > header .nav__menu li {
    width: 100%;
  }

  body > header .nav__link {
    width: 100%;
    justify-content: flex-start;
    margin: 5px 0;
    padding: 12px 20px;
  }

  body > header .nav__brand {
    top: 10px;
  }
}

@media (max-width: 768px) {
  body > header .top-left,
  body > header .top-right,
  .mobile-nav-toggle,
  .bottom-bar-wrapper {
    display: none !important;
  }

  .bottom--bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    width: 100%;
    min-height: var(--site-mobile-bottom-nav-height);
    align-items: center;
    justify-content: space-around;
    padding: 6px 0 8px;
    border-top: 1px solid var(--site-chrome-line);
    background: var(--site-chrome-panel-strong);
    box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.28), 0 -1px 0 var(--site-chrome-line);
  }

  body.theme-pirate .bottom--bar,
  body[data-site-theme="pirate"] .bottom--bar {
    border-top-color: var(--site-chrome-line) !important;
    background: var(--site-chrome-panel-strong) !important;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.24) !important;
  }

  body.theme-pirate .bottom--bar a.nav-btn,
  body.theme-pirate .bottom--bar a.nav-btn:link,
  body.theme-pirate .bottom--bar a.nav-btn:visited,
  body[data-site-theme="pirate"] .bottom--bar a.nav-btn,
  body[data-site-theme="pirate"] .bottom--bar a.nav-btn:link,
  body[data-site-theme="pirate"] .bottom--bar a.nav-btn:visited {
    color: var(--site-chrome-muted) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  body.theme-pirate .bottom--bar a.nav-btn.active,
  body.theme-pirate .bottom--bar a.nav-btn:hover,
  body.theme-pirate .bottom--bar a.nav-btn:focus-visible,
  body[data-site-theme="pirate"] .bottom--bar a.nav-btn.active,
  body[data-site-theme="pirate"] .bottom--bar a.nav-btn:hover,
  body[data-site-theme="pirate"] .bottom--bar a.nav-btn:focus-visible {
    color: var(--site-chrome-accent) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  .bottom--bar a.nav-btn,
  .bottom--bar a.nav-btn:link,
  .bottom--bar a.nav-btn:visited,
  .bottom--bar a.nav-btn:hover,
  .bottom--bar a.nav-btn:active {
    flex-direction: column;
    gap: 4px;
    width: 25%;
    max-width: 25%;
    height: 66px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .bottom--bar a.nav-btn svg {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    flex-shrink: 0;
  }

  body:has(.bottom--bar) {
    padding-bottom: calc(var(--site-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 769px) {
  .bottom--bar {
    display: none !important;
  }

  .bottom-bar-wrapper {
    display: block;
  }
}

/*
 * Keep the site's cursor on every in-page mouse state. Component styles and
 * browser defaults otherwise replace it with pointer/text/grab cursors while
 * clicking, dragging, or selecting content. Keep the asset below Chromium's
 * 32px edge-protection threshold and version this nested static URL explicitly.
 */
@media (hover: hover) and (pointer: fine) {
  html,
  body.site-chrome,
  body.site-chrome *,
  body.site-chrome *::before,
  body.site-chrome *::after {
    cursor: url('../../../images/icon_cursor.png?v=31') 0 0, auto !important;
  }
}
