/* Stable shell geometry and theme defaults required before first paint. */
:root {
  --nav-height: 48px;
  --nav-auth-cta-width: 132px;
  --nav-auth-cta-width-sm: 96px;
  --nav-action-gap: 10px;
  --color-bg: #000000;
  --color-surface: #1d1d1f;
  --color-surface-2: #2d2d2f;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: #f5f5f7;
  --color-muted: #86868b;
  --color-accent: #ff2d55;
  --color-accent-strong: #d70040;
  --color-accent-weak: #ff375f;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --spacing-unit: 8px;
  --layer-blur-bg: rgba(26, 26, 26, 0.8);
  --layer-blur-bg-strong: rgba(26, 26, 26, 0.95);
  --backdrop-blur: 20px;
  --surface-subtle: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.10);
  --surface-active: rgba(255, 255, 255, 0.15);
  --surface-overlay: rgba(26, 26, 26, 0.50);
  --pink-tint-05: rgba(255, 105, 180, 0.05);
  --pink-tint-08: rgba(255, 105, 180, 0.08);
  --pink-tint-15: rgba(255, 105, 180, 0.15);
  --pink-tint-20: rgba(255, 105, 180, 0.20);
}
html[data-theme="light"] {
  color-scheme: light;
  --color-bg: #fbfbfd;
  --color-surface: #ffffff;
  --color-surface-2: #f5f5f7;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-text: #1d1d1f;
  --color-muted: #5f5f66;
  --color-accent: #ff375f;
  --color-accent-strong: #e8244d;
  --color-accent-weak: #ff577e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --layer-blur-bg: rgba(255, 255, 255, 0.72);
  --layer-blur-bg-strong: rgba(255, 255, 255, 0.92);
  --surface-subtle: rgba(0, 0, 0, 0.02);
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-active: rgba(0, 0, 0, 0.06);
  --surface-overlay: rgba(255, 255, 255, 0.86);
  --pink-tint-05: rgba(255, 55, 95, 0.02);
  --pink-tint-08: rgba(255, 55, 95, 0.04);
  --pink-tint-15: rgba(255, 55, 95, 0.09);
  --pink-tint-20: rgba(255, 55, 95, 0.12);
}
html[data-theme="dark"] { color-scheme: dark; }
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
@media (max-width: 768px) {
  html {
    overflow-y: auto;
    scrollbar-gutter: auto;
    -webkit-overflow-scrolling: touch;
  }
  body { overflow-y: visible; }
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.47059;
}
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 726px;
  margin-top: calc(var(--spacing-unit) * 8);
}
.seo-nav {
  content-visibility: auto;
  contain-intrinsic-size: auto 249px;
}
@media (max-width: 1068px) {
  .footer { contain-intrinsic-size: auto 1125px; }
  .seo-nav { contain-intrinsic-size: auto 230px; }
}
@media (max-width: 734px) {
  .footer { contain-intrinsic-size: auto 1687px; }
  .seo-nav { contain-intrinsic-size: auto 287px; }
}
button,
input,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-weight: 600;
}
p {
  color: var(--color-text);
}
main {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  padding-top: var(--nav-height);
  overflow-x: hidden;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--layer-blur-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(var(--backdrop-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--backdrop-blur));
}
.nav-container {
  max-width: 1200px;
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  contain: layout style;
}
.nav-logo,
.nav-actions {
  flex: 0 0 auto;
}
.nav-logo a {
  display: flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.logo-img {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-right: 8px;
}
.logo-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav-menu {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: 32px;
  margin: 0 48px;
  overflow: visible;
  white-space: nowrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--nav-action-gap);
}
.nav-actions .nav-auth-island,
.nav-actions .login-btn,
.nav-actions .dashboard-btn.btn-primary {
  flex: 0 0 var(--nav-auth-cta-width);
  width: var(--nav-auth-cta-width);
  min-width: var(--nav-auth-cta-width);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-actions .nav-auth-island {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-actions .nav-auth-island .login-btn,
.nav-actions .nav-auth-island .dashboard-btn.btn-primary {
  flex-basis: 100%;
  width: 100%;
  min-width: 100%;
}
.login-btn,
.nav-actions .login-btn,
.nav-actions .dashboard-btn {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nav-more {
  display: none;
}
.dropdown-menu,
.mobile-menu {
  visibility: hidden;
}
.language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--layer-blur-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}
.language-selector .icon-globe {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: var(--color-text);
}
.language-selector select {
  width: var(--lang-select-width, 12ch);
  min-width: var(--lang-select-width, 12ch);
  max-width: var(--lang-select-width, 12ch);
  height: 100%;
  padding: 0 24px 0 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.language-selector .lang-code {
  display: none;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 12px;
}
.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  left: 0;
  background: var(--color-text);
}
.menu-icon::before { top: -6px; }
.menu-icon::after { bottom: -6px; }
@media (max-width: 734px) {
  :root {
    --nav-height: 44px;
    --nav-action-gap: 12px;
  }
  .nav-container {
    height: var(--nav-height);
    padding: 0 16px;
    width: 100%;
  }
  .nav-actions .nav-auth-island,
  .nav-actions .login-btn,
  .nav-actions .dashboard-btn.btn-primary {
    flex-basis: var(--nav-auth-cta-width-sm);
    width: var(--nav-auth-cta-width-sm);
    min-width: var(--nav-auth-cta-width-sm);
  }
  .nav-actions .login-btn {
    padding: 0 16px;
    font-size: 12px;
  }
	        .nav-actions .language-selector {
	          display: inline-flex;
	          position: relative;
	        }
	        .theme-toggle.theme-toggle--header,
	        .site-theme-selector--header {
	          display: none;
	        }
	        .mobile-theme-palette {
	          display: flex;
	        }
	        .mobile-theme-palette .site-theme-selector--drawer {
	          display: inline-flex;
	        }
	        .language-selector .lang-code {
	          position: absolute;
	          left: 24px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    font-size: 12px;
    color: var(--color-text);
  }
  .language-selector select,
  html[data-theme="light"] .language-selector select {
    width: var(--lang-select-width-sm, 10ch);
    min-width: var(--lang-select-width-sm, 10ch);
    max-width: var(--lang-select-width-sm, 10ch);
    padding: 4px 24px 4px 8px;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 12px;
  }
  .logo-img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .logo-text {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
    padding: 8px;
    margin: 0;
  }
	        .nav-discord-text {
	          display: none;
	        }
	        .mobile-language {
	          display: block;
	        }
	      }
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }
  .nav-menu {
    display: none;
  }
  .logo-text {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
