:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  --color-primary: #353943;
  --color-secondary: #24262d;
  --color-dark: #191b21;
  --color-background-start: #000713;
  --color-background-end: #000d1e;
  scrollbar-color: auto;
  scrollbar-width: auto;
}

* {
  box-sizing: border-box;
}

html::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

html::-webkit-scrollbar-track {
  background: #1b2029;
}

html::-webkit-scrollbar-thumb {
  border: 1px solid #1b2029;
  border-radius: 8px;
  background: #687386;
}

html::-webkit-scrollbar-thumb:hover {
  background: #ffc421;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(to bottom, var(--color-background-start), var(--color-background-end));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.fa-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.fa-icon--house {
  mask-image: url("../assets/fa-svgs/house.svg");
  -webkit-mask-image: url("../assets/fa-svgs/house.svg");
}

.fa-icon--gear {
  mask-image: url("../assets/fa-svgs/gear.svg");
  -webkit-mask-image: url("../assets/fa-svgs/gear.svg");
}

.fa-icon--crosshairs {
  mask-image: url("../assets/fa-svgs/crosshairs.svg");
  -webkit-mask-image: url("../assets/fa-svgs/crosshairs.svg");
}

.fa-icon--eye {
  mask-image: url("../assets/fa-svgs/eye.svg");
  -webkit-mask-image: url("../assets/fa-svgs/eye.svg");
}

.fa-icon--share-nodes {
  mask-image: url("../assets/fa-svgs/share-nodes.svg");
  -webkit-mask-image: url("../assets/fa-svgs/share-nodes.svg");
}

.fa-icon--copy {
  mask-image: url("../assets/fa-svgs/copy.svg");
  -webkit-mask-image: url("../assets/fa-svgs/copy.svg");
}

.fa-icon--download {
  mask-image: url("../assets/fa-svgs/download.svg");
  -webkit-mask-image: url("../assets/fa-svgs/download.svg");
}

.fa-icon--arrow-right {
  mask-image: url("../assets/fa-svgs/arrow-right.svg");
  -webkit-mask-image: url("../assets/fa-svgs/arrow-right.svg");
}

.fa-icon--magnifying-glass {
  mask-image: url("../assets/fa-svgs/magnifying-glass.svg");
  -webkit-mask-image: url("../assets/fa-svgs/magnifying-glass.svg");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 74px;
  padding: 0 32px;
  background: linear-gradient(to bottom, #292a31, #202126);
  box-shadow: 0 4px 14px rgb(0 0 0 / 24%);
}

.nav-inner {
  width: min(100%, 1408px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin: 0 auto;
}

.nav-link.is-current {
  border-radius: 14px;
  background: #191b23;
  box-shadow: none;
  color: #fff;
}

.nav-link.is-current::after {
  display: none;
}

.protox-logo {
  color: #fff;
  font-size: 39px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
  transition: width 180ms ease;
}

.site-search.is-open {
  width: min(320px, calc(100vw - 64px));
}

.site-search-input {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  border-radius: 8px 0 0 8px;
  outline: 0;
  background: #202632;
  color: #fff;
  font: inherit;
  opacity: 0;
  transition: opacity 120ms ease, padding 180ms ease;
}

.site-search.is-open .site-search-input {
  padding: 0 12px;
  opacity: 1;
}

.site-search-input:focus-visible {
  box-shadow: inset 0 0 0 2px #ffc421;
}

.site-search-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: #202632;
  color: #fff;
  cursor: pointer;
  transition: color 100ms ease, background-color 100ms ease;
}

.site-search.is-open .site-search-toggle {
  border-radius: 0 8px 8px 0;
}

.site-search-toggle:hover {
  background: #303747;
  color: #ffc421;
}

.site-search-toggle:focus-visible,
.site-search-result:focus-visible {
  outline: 2px solid #ffc421;
  outline-offset: 2px;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(60vh, 420px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  background: #202632;
  box-shadow: 0 12px 28px rgb(0 0 0 / 40%);
}

.site-search-results::-webkit-scrollbar {
  display: none;
}

.site-search-results[hidden] {
  display: none;
}

.site-search-result {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
}

.site-search-result-with-avatar {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.site-search-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-search-result:hover {
  background: #303747;
}

.site-search-result-title {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.site-search-result-detail,
.site-search-message {
  color: rgb(255 255 255 / 62%);
  font-size: 11px;
}

.site-search-result-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-search-message {
  padding: 10px 12px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-radius: 6px;
  color: #f7f8fb;
  font-size: 14px;
  font-weight: 750;
  text-transform: none;
  transition: background-color 70ms ease, color 70ms ease;
}

.nav-link::after {
  position: absolute;
  right: 50%;
  bottom: 5px;
  width: 30%;
  max-width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #ffc421;
  content: "";
  transform: translateX(50%) scaleX(0);
  transition: transform 70ms ease-out;
}

.nav-link:hover,
.nav-link.is-current {
  background: #191b23;
  box-shadow: none;
  color: #fff;
}

.nav-link:hover:not(.is-current) {
  background: rgb(255 255 255 / 6%);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: translateX(50%) scaleX(1);
}

.hub-main {
  width: 100%;
}

.community-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(32px, 7vw, 100px);
  background-image:
    linear-gradient(90deg, rgb(0 0 0 / 34%), transparent 75%),
    linear-gradient(to top, rgb(0 0 0 / 62%), transparent 72%),
    url("../assets/screenshots/community-hero.png");
  background-repeat: no-repeat;
  background-position: center, center, center 56%;
  background-size: cover, cover, auto 180%;
}

.community-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(120px, 22vh, 220px);
  background: linear-gradient(to bottom, transparent, var(--color-background-end));
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffc421;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.community-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.hero-copy {
  max-width: 580px;
  margin: 16px 0 26px;
  color: rgb(255 255 255 / 88%);
  font-size: 16px;
  line-height: 1.6;
}

.primary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 25px;
  border: 0;
  border-radius: 12px;
  background: #ffbf0b;
  box-shadow: none;
  color: #263043;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button:hover {
  background: #ffd044;
}

.resource-stats {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 82px 0 96px;
}

.resource-stats h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.resource-stats-status {
  margin: 16px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
}

.resource-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.resource-stat-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 4px;
  background: #1c2029;
  box-shadow: 0 8px 20px rgb(0 0 0 / 20%);
  transition: background-color 100ms ease, border-color 100ms ease;
}

.resource-stat-card:hover {
  border-color: rgb(255 196 33 / 55%);
  background: #252a35;
}

.resource-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background-color: #343a48;
}

.resource-stat-avatar {
  border-radius: 2px;
  background-repeat: no-repeat;
  background-position: -170px -34px, -34px -34px;
  background-size: 272px 272px;
  image-rendering: pixelated;
}

.resource-stat-avatar-settings {
  background-image:
    url("../assets/textures/texture_40_1592_64.webp"),
    url("../assets/textures/texture_40_1592_64.webp");
}

.resource-stat-avatar-crosshairs {
  background-image:
    url("../assets/textures/texture_40_44_64.webp"),
    url("../assets/textures/texture_40_44_64.webp");
}

.resource-stat-avatar-scopes {
  background-image:
    url("../assets/textures/texture_40_41_64.webp"),
    url("../assets/textures/texture_40_41_64.webp");
}

.resource-stat-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.resource-stat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f5f8f2;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.resource-stat-heading strong {
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

.resource-stat-track {
  height: 6px;
  overflow: hidden;
  background: #343a48;
}

.resource-stat-fill {
  width: 0;
  height: 100%;
  display: block;
  background: #ffc421;
  transition: width 180ms ease-out;
}

.creative-hub {
  width: min(100% - 32px, 760px);
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 96px;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  background: linear-gradient(145deg, #24262d, #191b21);
  box-shadow: 0 12px 28px rgb(0 0 0 / 24%);
}

.creative-hub-icon {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 12px;
  object-fit: cover;
}

.creative-hub-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 4vw, 30px);
}

.creative-hub-content p:last-child {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 78%);
  line-height: 1.6;
}

.creative-hub-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 7px;
  background: #5865f2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 100ms ease;
}

.creative-hub-link:hover {
  background: #4752c4;
}

.scroll-reveal-ready .resource-stat-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms ease, transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.scroll-reveal-ready .resource-stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-ready .resource-stat-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.bottom-nav {
  display: none;
}

.site-footer {
  padding: 48px 24px;
  background:
    linear-gradient(to bottom, var(--color-background-end), transparent 96px),
    linear-gradient(to bottom right, var(--color-secondary), var(--color-dark));
  box-shadow: 0 -8px 24px rgb(0 0 0 / 12%);
  color: #fff;
}

.footer-inner {
  width: min(100%, 1120px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  background: linear-gradient(to bottom, var(--color-accent-light2), var(--color-accent2));
  background-clip: text;
  color: transparent;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  transform: skewX(-12deg);
}
.adwaf2e {
  display: inline-block;
  margin-bottom: 12px;
  background: linear-gradient(to bottom, var(--color-accent-light), var(--color-accent));
  background-clip: text;
  color: transparent;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  transform: skewX(-12deg);
}

.footer-copy,
.footer-links-title {
  color: rgb(255 255 255 / 50%);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 38px;
}

.footer-links section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: #fff;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.section-page {
  width: min(100% - 32px, 760px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}

.not-found-page {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 16px 80px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.not-found-title {
  font-size: 24px;
}

.not-found-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 48px;
}

.not-found-home {
  width: max-content;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--color-secondary);
  font-weight: 500;
  transition: background-color 100ms ease;
}

.not-found-home:hover {
  background: var(--color-primary);
}

.section-page h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
}

.api-page {
  width: min(100% - 32px, 960px);
  align-items: stretch;
  justify-content: flex-start;
  padding: 48px 0 96px;
}

.api-page h1 {
  margin-top: 28px;
}

.api-intro {
  margin: -8px 0 8px;
  color: rgb(255 255 255 / 70%);
  line-height: 1.6;
}

.api-endpoints {
  width: 100%;
  display: grid;
  gap: 16px;
}

.api-endpoint,
.api-sharing {
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  background: linear-gradient(145deg, #303747, #1d2431);
  box-shadow: 0 14px 32px rgb(0 0 0 / 18%);
}

.api-endpoint h2,
.api-sharing h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}

.api-route {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffc421;
  font-size: 14px;
  font-weight: 650;
}

.api-endpoint p,
.api-sharing p {
  margin: 0 0 14px;
  color: rgb(255 255 255 / 75%);
  line-height: 1.6;
}

.api-example {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgb(0 0 0 / 28%);
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
  line-height: 1.55;
}

.api-sharing {
  margin-top: 16px;
}

.api-sharing p {
  margin-bottom: 0;
}

.api-sharing code {
  color: #ffc421;
}

.site-map-page {
  width: min(100% - 32px, 760px);
  justify-content: flex-start;
  padding: 48px 0 96px;
}

.site-map-page h1 {
  margin-top: 28px;
}

.site-map-list {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-map-list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  background: linear-gradient(145deg, #303747, #1d2431);
  transition: background-color 100ms ease, border-color 100ms ease;
}

.site-map-list a:hover {
  border-color: rgb(255 196 33 / 55%);
  background: var(--color-secondary);
}

.resources-page {
  width: min(100% - 32px, 1120px);
  justify-content: flex-start;
  padding: 48px 0 96px;
}

.resources-page h1 {
  margin-top: 28px;
}

.resource-group {
  width: 100%;
  margin-top: 24px;
}

.resource-group h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
}

.community-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.community-resource-card {
  min-height: 190px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 12px;
  background: linear-gradient(145deg, #24262d, #191b21);
  box-shadow: 0 12px 28px rgb(0 0 0 / 22%);
}

.community-resource-type {
  color: #ffc421;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.community-resource-card h3 {
  margin: 10px 0 6px;
  color: #fff;
  font-size: 18px;
}

.community-resource-card p {
  margin: 0 0 18px;
  color: rgb(255 255 255 / 68%);
  font-size: 13px;
  line-height: 1.5;
}

.community-resource-card .community-resource-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.community-resource-author .protox-head-avatar {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  background-position: -120px -24px, -24px -24px;
  background-size: 192px 192px;
}

.community-resource-card .community-resource-author:hover {
  color: #ffc421;
  text-decoration: underline;
}

.community-resource-card > a:not(.community-resource-author) {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  color: #ffc421;
  font-size: 13px;
  font-weight: 650;
}

.community-resource-card a:hover,
.community-resource-credits a:hover {
  text-decoration: underline;
}

.community-resource-credits {
  margin: 24px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
}

.community-resource-credits a {
  color: #ffc421;
}

.settings-page {
  width: min(100% - 32px, 1280px);
  justify-content: flex-start;
  padding: 48px 0 96px;
}

.settings-page h1 {
  margin-top: 28px;
}

.settings-intro {
  max-width: 640px;
  margin: -8px 0 0;
  color: rgb(255 255 255 / 70%);
  line-height: 1.6;
}

.settings-gallery-status {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 14px;
}

.settings-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.settings-profile-card {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 12px;
  background: linear-gradient(145deg, #24262d, #191b21);
  box-shadow: 0 12px 28px rgb(0 0 0 / 22%);
}

.is-shared-target {
  outline: 3px solid #ffc421;
  outline-offset: 4px;
  scroll-margin-block: 100px;
}

.settings-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.settings-profile-header h2 {
  margin: 0;
}

.settings-profile-count {
  margin: 7px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
}

.settings-profile-owner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.settings-owner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border-radius: 10px;
  background: #242731;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.settings-owner-link:hover {
  text-decoration: underline;
}

.settings-owner-link:focus-visible {
  outline: 2px solid #ffc421;
  outline-offset: 3px;
}

.settings-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-action-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 7px;
  background: #242731;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 100ms ease;
}

.settings-action-button:hover {
  background: #353a48;
}

.settings-action-button:focus-visible {
  outline: 2px solid #ffc421;
  outline-offset: 2px;
}

.settings-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 20px 24px;
}

.settings-value {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgb(0 0 0 / 22%);
}

.settings-value dt {
  margin-bottom: 6px;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
}

.settings-value dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.settings-long-url summary {
  color: #ffc421;
  font-size: 12px;
  cursor: pointer;
}

.settings-long-url code {
  max-height: 180px;
  display: block;
  overflow: auto;
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / 28%);
  color: rgb(255 255 255 / 78%);
  font-size: 11px;
  font-weight: 400;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.settings-all-details,
.settings-bindings {
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.settings-all-details > summary,
.settings-bindings > summary {
  padding: 16px 24px;
  color: #ffc421;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style-position: inside;
}

.settings-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 24px 24px;
}

.crosshairs-page {
  width: min(100% - 32px, 1280px);
  justify-content: flex-start;
  padding: 48px 0 80px;
}

.crosshairs-page h1 {
  margin-top: 28px;
}

.crosshair-gallery-status {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 14px;
}

.crosshair-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.crosshair-card {
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 12px;
  background: #191b21;
  transition: filter 180ms ease, transform 180ms ease;
}

.crosshair-card:hover {
  filter: brightness(1.2);
  transform: scale(1.025);
}

.crosshair-preview {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #252525;
}

.crosshair-preview::before,
.scope-preview::before {
  position: absolute;
  inset: 0;
  background: url("../assets/screenshots/community-hero.png") center / cover;
  content: "";
  filter: grayscale(1) brightness(0.65);
  pointer-events: none;
}

.crosshair-title {
  position: relative;
  z-index: 2;
  padding: 10px;
  line-height: 1.25;
}

.crosshair-image {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  transform: translate(-50%, -50%);
}

.crosshair-details {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 10px 10px 135px;
  background: #191b21;
  font-size: 14px;
  line-height: 1;
}

.crosshair-actions {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.crosshair-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
  background: #242731;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.crosshair-action-button:hover {
  background: #353a48;
}

.crosshair-action-button:focus-visible {
  outline: 2px solid #ffc421;
  outline-offset: 2px;
}

.crosshair-author {
  margin-left: auto;
  color: rgb(255 255 255 / 65%);
  font-size: 12px;
  text-align: right;
}

.crosshair-author-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 5px;
  border-radius: 10px;
  background: #242731;
  color: #fff;
}

.crosshair-author a:hover {
  text-decoration: underline;
}

.protox-head-avatar {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background-image:
    url("../assets/textures/texture_40_40_64.webp"),
    url("../assets/textures/texture_40_40_64.webp");
  background-repeat: no-repeat;
  background-position: -150px -30px, -30px -30px;
  background-size: 240px 240px;
  image-rendering: pixelated;
  border-radius: 8px;
}

.protox-head-avatar.is-unknown {
  background-image:
    url("../assets/textures/texture_40_1049_64.webp"),
    url("../assets/textures/texture_40_1049_64.webp");
}

.scopes-page {
  width: min(100% - 32px, 1280px);
  justify-content: flex-start;
  padding: 48px 0 80px;
}

.scopes-page h1 {
  margin-top: 28px;
}

.scopes-intro {
  max-width: 700px;
  margin: -8px 0 0;
  color: rgb(255 255 255 / 70%);
  line-height: 1.6;
}

.scope-gallery-status {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 14px;
}

.scope-gallery {
  margin-top: 8px;
}

.scope-preview {
  position: relative;
  background: #252525;
}

.scope-dimensions {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-shadow: 0 1px 5px #000;
}

.scope-image {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.scope-details {
  justify-content: space-between;
  padding-left: 10px;
}

.scope-actions {
  align-items: center;
}

@media (max-width: 620px) {
  .crosshair-gallery {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .crosshair-card {
    aspect-ratio: 18 / 10;
  }
}

.back-link {
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--color-secondary);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  background: var(--color-primary);
}

.back-link:focus-visible,
.category-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .hub-main {
    min-height: 0;
  }

  .not-found-page {
    min-height: 100svh;
  }

  .community-hero {
    min-height: calc(100svh - 58px);
    padding: 30px 22px 56px;
    background-size: cover, cover, auto 155%;
  }

  .hero-content {
    max-width: 540px;
  }

  .resource-stats {
    padding: 58px 0 80px;
  }

  .creative-hub {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 80px;
    padding: 18px;
  }

  .creative-hub-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-dark));
    box-shadow: 0 -8px 20px rgb(0 0 0 / 24%);
  }

  .bottom-nav a {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 3px 13px;
    color: rgb(255 255 255 / 75%);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: color 70ms ease;
  }

  .bottom-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 5px;
    width: 30%;
    max-width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    content: "";
    transform: translateX(50%) scaleX(0);
    transition: transform 70ms ease-out;
  }

  .bottom-nav a:hover,
  .bottom-nav a.is-current {
    border-radius: 12px;
    background: #191b23;
    color: #fff;
  }

  .bottom-nav a:hover::after,
  .bottom-nav a.is-current::after {
    transform: translateX(50%) scaleX(0);
  }

  .site-footer {
    padding: 38px 24px 86px;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .footer-links {
    gap: 22px;
    text-align: left;
  }
}

@media (min-width: 761px) and (max-width: 840px) {
  .site-search.is-open {
    width: min(250px, calc(100vw - 64px));
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-link {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-link::after,
  .bottom-nav a,
  .bottom-nav a::after,
  .site-search,
  .site-search-input,
  .site-search-toggle {
    transition: none;
  }
}

@media (max-width: 460px) {
  .community-hero {
    background-position: center, center, 53% 56%;
  }

  .resource-stats {
    width: min(100% - 24px, 760px);
  }

  .resource-stat-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 16px;
  }
}
