:root {
  --uf-charcoal: #151718;
  --uf-ink: #202425;
  --uf-ink-soft: #353a3b;
  --uf-stone: #d8d5cc;
  --uf-paper: #f4f2ec;
  --uf-white: #fff;
  --uf-forest: #2f6b45;
  --uf-crimson: #a83232;
  --uf-gold: #d6a83e;
  --uf-gold-dark: #8e641d;
  --uf-sky: #6da8c9;
  --uf-border: rgba(32, 36, 37, 0.15);
  --uf-shadow: 0 16px 44px rgba(18, 20, 20, 0.15);
  --uf-radius: 6px;
  --uf-shell: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--uf-paper);
  color: var(--uf-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

body.admin-bar .uf-header {
  top: 32px;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: 72px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
}

.screen-reader-text,
.uf-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.uf-skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--uf-white);
  color: var(--uf-ink);
}

.uf-shell {
  width: min(calc(100% - 40px), var(--uf-shell));
  margin-inline: auto;
}

.uf-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 20, 20, 0.86);
  color: var(--uf-white);
  backdrop-filter: blur(14px);
}

.uf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.uf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.uf-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: var(--uf-crimson);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 15px;
  font-weight: 800;
}

.uf-brand__text {
  display: grid;
  line-height: 1.2;
}

.uf-brand__text strong {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 17px;
}

.uf-brand__text small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  text-transform: uppercase;
}

.uf-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.uf-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.uf-nav__list a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.uf-nav__list a:hover,
.uf-nav__list a:focus-visible {
  color: var(--uf-gold);
}

.uf-icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.uf-nav-toggle {
  display: none;
}

.uf-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.uf-button:hover {
  transform: translateY(-2px);
}

.uf-button svg {
  width: 18px;
  height: 18px;
}

.uf-button--compact {
  min-height: 40px;
  padding-inline: 16px;
}

.uf-button--gold {
  border-color: #e5bc5d;
  background: var(--uf-gold);
  color: #211b10;
}

.uf-button--gold:hover {
  background: #e3b951;
}

.uf-button--glass {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(15, 17, 18, 0.36);
  color: var(--uf-white);
  backdrop-filter: blur(8px);
}

.uf-button--dark {
  background: var(--uf-ink);
  color: var(--uf-white);
}

.uf-button--outline-light {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--uf-white);
}

.uf-hero {
  position: relative;
  display: grid;
  min-height: min(760px, 80svh);
  overflow: hidden;
  align-items: center;
  color: var(--uf-white);
}

.uf-hero__image,
.uf-hero__shade {
  position: absolute;
  inset: 0;
}

.uf-hero__image {
  background-image: url("../images/uf-factions-hero.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.uf-hero__shade {
  background: rgba(10, 12, 12, 0.38);
}

.uf-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 70px;
}

.uf-hero h1 {
  max-width: 720px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.uf-hero p {
  max-width: 600px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
}

.uf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.uf-eyebrow,
.uf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--uf-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.uf-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65c47d;
  box-shadow: 0 0 0 5px rgba(101, 196, 125, 0.16);
}

.uf-scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--uf-white);
  transform: translateX(-50%);
}

.uf-status-band {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--uf-charcoal);
  color: var(--uf-white);
}

.uf-status-band__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: center;
  min-height: 158px;
  padding-block: 26px;
}

.uf-status-band h2 {
  font-size: 30px;
}

.uf-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.uf-stat > div {
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.uf-stat dt,
.uf-faction__meta dt {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.uf-stat dd {
  margin: 3px 0 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 34px;
  font-weight: 800;
  white-space: nowrap;
}

.uf-stat dd span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 17px;
}

.uf-stat .uf-stat__text {
  overflow: hidden;
  font-family: inherit;
  font-size: 15px;
  text-overflow: ellipsis;
}

.uf-section {
  padding-block: 92px;
}

.uf-section--stone {
  background: var(--uf-stone);
}

.uf-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.uf-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--uf-crimson);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.uf-text-link svg {
  width: 16px;
}

.uf-faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.uf-faction {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(32, 36, 37, 0.14);
  border-top: 4px solid var(--uf-crimson);
  border-radius: var(--uf-radius);
  background: var(--uf-paper);
  box-shadow: 0 10px 30px rgba(30, 32, 32, 0.08);
}

.uf-faction:nth-child(2) {
  border-top-color: var(--uf-forest);
}

.uf-faction:nth-child(3) {
  border-top-color: var(--uf-gold-dark);
}

.uf-faction__header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.uf-faction__crest {
  display: grid;
  width: 48px;
  height: 54px;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  background: var(--uf-ink);
  color: var(--uf-gold);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 13px;
  font-weight: 900;
}

.uf-faction__tag {
  color: var(--uf-crimson);
  font-size: 11px;
  font-weight: 900;
}

.uf-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.uf-badge--open {
  background: rgba(47, 107, 69, 0.13);
  color: var(--uf-forest);
}

.uf-badge--closed {
  background: rgba(168, 50, 50, 0.12);
  color: var(--uf-crimson);
}

.uf-faction__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  padding: 21px 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--uf-border);
  border-bottom: 1px solid var(--uf-border);
}

.uf-faction__meta dt {
  color: #6a6f6d;
}

.uf-faction__meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.uf-faction__style {
  margin-top: 18px;
  color: #656a68;
  font-size: 14px;
}

.uf-faction__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--uf-ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.uf-faction__action svg {
  width: 17px;
}

.uf-guides {
  background: var(--uf-paper);
}

.uf-guides__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 74px;
  align-items: start;
}

.uf-guides__intro p,
.uf-map-section__content p {
  max-width: 520px;
  margin: 20px 0 26px;
  color: #5d6361;
}

.uf-guide-list {
  border-top: 1px solid var(--uf-border);
}

.uf-guide-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 17px;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--uf-border);
  color: var(--uf-ink);
  text-decoration: none;
}

.uf-guide-row__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--uf-border);
  border-radius: 5px;
  color: var(--uf-crimson);
}

.uf-guide-row strong,
.uf-guide-row small {
  display: block;
}

.uf-guide-row small {
  margin-top: 2px;
  color: #707573;
  font-size: 13px;
}

.uf-map-section {
  overflow: hidden;
  background: var(--uf-forest);
  color: var(--uf-white);
}

.uf-map-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 64px;
  align-items: center;
}

.uf-map-section__content p {
  color: rgba(255, 255, 255, 0.72);
}

.uf-map-preview {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--uf-radius);
  background: #315d4b;
  box-shadow: var(--uf-shadow);
}

.uf-map-preview__terrain {
  position: absolute;
  inset: -12%;
  background-color: #6f8c58;
  background-image:
    linear-gradient(32deg, transparent 38%, rgba(91, 122, 77, 0.95) 39% 48%, transparent 49%),
    linear-gradient(148deg, transparent 42%, rgba(80, 116, 73, 0.9) 43% 51%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 28px);
  transform: rotate(-8deg) scale(1.2);
}

.uf-map-marker {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 2px solid var(--uf-white);
  border-radius: 3px;
  background: var(--uf-crimson);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 900;
}

.uf-map-marker--one {
  top: 22%;
  left: 24%;
}

.uf-map-marker--two {
  top: 54%;
  left: 56%;
  background: var(--uf-forest);
}

.uf-map-marker--three {
  right: 16%;
  bottom: 18%;
  background: var(--uf-gold-dark);
}

.uf-video-section {
  background: var(--uf-paper);
}

.uf-video-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
}

.uf-video {
  color: var(--uf-ink);
  text-decoration: none;
}

.uf-video__visual {
  display: grid;
  min-height: 190px;
  place-items: center;
  border-radius: var(--uf-radius);
  background-color: #68735d;
  background-image:
    linear-gradient(35deg, rgba(25, 29, 28, 0.8), transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.05) 42px 43px);
}

.uf-video--feature .uf-video__visual {
  min-height: 280px;
}

.uf-video__visual--base {
  background-color: #6f5e4c;
}

.uf-video__visual--economy {
  background-color: #6c774b;
}

.uf-video__visual svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: var(--uf-white);
  color: var(--uf-crimson);
}

.uf-video > span:last-child {
  display: block;
  padding-top: 13px;
}

.uf-video strong,
.uf-video small {
  display: block;
}

.uf-video small {
  color: #727775;
  font-size: 13px;
}

.uf-join {
  padding-block: 58px;
  background: var(--uf-crimson);
  color: var(--uf-white);
}

.uf-join__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.uf-join h2 {
  font-size: 36px;
}

.uf-join .uf-kicker {
  color: rgba(255, 255, 255, 0.65);
}

.uf-join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uf-footer {
  padding-block: 44px;
  background: #101212;
  color: var(--uf-white);
}

.uf-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.uf-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.uf-footer__links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.uf-footer__legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.uf-content-page {
  min-height: 70vh;
  padding: 145px 0 90px;
}

.uf-content-page__inner {
  max-width: 860px;
}

.uf-page-header {
  padding-bottom: 28px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--uf-border);
}

.uf-prose > * + * {
  margin-top: 1.5em;
}

.uf-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--uf-radius);
}

.uf-post-row {
  padding-block: 30px;
  border-bottom: 1px solid var(--uf-border);
}

.uf-post-row h2 {
  margin: 5px 0 12px;
  font-size: 30px;
}

.uf-post-row h2 a {
  text-decoration: none;
}

.uf-post-row time {
  color: var(--uf-crimson);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .uf-nav-toggle {
    display: inline-grid;
  }

  .uf-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: var(--uf-charcoal);
  }

  .uf-nav.is-open {
    display: grid;
  }

  .uf-nav__list {
    display: grid;
    gap: 0;
  }

  .uf-nav__list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .uf-faction-grid,
  .uf-video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .uf-faction:last-child,
  .uf-video--feature {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.admin-bar .uf-header {
    top: 46px;
  }

  .uf-shell {
    width: min(calc(100% - 28px), var(--uf-shell));
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .uf-brand__text small {
    display: none;
  }

  .uf-hero {
    min-height: 670px;
    align-items: end;
  }

  .uf-hero__image {
    background-position: 58% center;
  }

  .uf-hero__shade {
    background: rgba(10, 12, 12, 0.5);
  }

  .uf-hero__content {
    padding: 120px 0 94px;
  }

  .uf-hero p {
    font-size: 18px;
  }

  .uf-hero__actions,
  .uf-join__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .uf-status-band__grid,
  .uf-guides__grid,
  .uf-map-section__grid {
    grid-template-columns: 1fr;
  }

  .uf-status-band__grid {
    gap: 24px;
  }

  .uf-stat > div:first-child {
    border-left: 0;
  }

  .uf-stat > div {
    padding: 0 14px;
  }

  .uf-stat dd {
    font-size: 25px;
  }

  .uf-section {
    padding-block: 68px;
  }

  .uf-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .uf-faction-grid,
  .uf-video-grid {
    grid-template-columns: 1fr;
  }

  .uf-faction:last-child,
  .uf-video--feature {
    grid-column: auto;
  }

  .uf-guides__grid {
    gap: 48px;
  }

  .uf-map-section__grid {
    gap: 42px;
  }

  .uf-map-preview {
    min-height: 310px;
  }

  .uf-map-section__content {
    order: -1;
  }

  .uf-video--feature .uf-video__visual,
  .uf-video__visual {
    min-height: 220px;
  }

  .uf-join__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .uf-footer__grid {
    grid-template-columns: 1fr;
  }

  .uf-footer__links {
    gap: 15px 22px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .uf-status-band h2 {
    font-size: 26px;
  }

  .uf-stat {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .uf-stat > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .uf-faction {
    padding: 19px;
  }

  .uf-faction__header {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .uf-faction__header .uf-badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* Version 2: stronger block-world identity */
:root {
  --uf-cyan: #1684a2;
  --uf-cyan-light: #35b7d5;
  --uf-night: #08161d;
  --uf-deepslate: #111a1d;
  --uf-moss: #45683d;
}

body {
  background: var(--uf-deepslate);
}

.uf-header {
  height: 82px;
  border-bottom: 2px solid rgba(22, 132, 162, 0.56);
  background: rgba(6, 16, 21, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.uf-brand__logo {
  display: block;
  width: 230px;
  height: auto;
}

.uf-nav__list a:hover,
.uf-nav__list a:focus-visible {
  color: var(--uf-cyan-light);
}

.uf-button {
  position: relative;
  border-radius: 2px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.uf-button--gold {
  border-color: #41c1dd;
  background: var(--uf-cyan);
  color: var(--uf-white);
}

.uf-button--gold:hover {
  background: #1e96b7;
}

.uf-button--glass {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(5, 13, 17, 0.7);
}

.uf-hero {
  min-height: min(850px, 88svh);
  border-bottom: 1px solid rgba(53, 183, 213, 0.35);
}

.uf-hero__image {
  background-image: url("../images/uf-factions-hero-v2.webp");
  background-position: center;
  transform: translate3d(var(--uf-parallax-x, 0), var(--uf-parallax-y, 0), 0) scale(1.045);
  transition: transform 260ms ease-out;
}

.uf-hero__shade {
  background: rgba(3, 12, 17, 0.36);
}

.uf-hero__vines {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: min(620px, 72%);
  background: url("../images/uf-vines-overlay.webp") top center / 100% auto no-repeat;
  opacity: 0.75;
  pointer-events: none;
  transform: translate3d(var(--uf-parallax-vines-x, 0), var(--uf-parallax-vines-y, 0), 0);
  transition: transform 300ms ease-out;
}

.uf-hero__content {
  display: flex;
  max-width: 760px;
  align-items: center;
  flex-direction: column;
  padding-top: 96px;
  text-align: center;
}

.uf-hero__logo {
  display: block;
  width: min(520px, 80vw);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.7));
  image-rendering: auto;
}

.uf-hero p {
  max-width: 670px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.78);
}

.uf-hero__actions {
  justify-content: center;
}

.uf-eyebrow {
  color: var(--uf-cyan-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.uf-hero-node {
  position: absolute;
  z-index: 4;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--uf-cyan);
  background: rgba(3, 12, 17, 0.72);
  color: var(--uf-white);
  backdrop-filter: blur(8px);
}

.uf-hero-node--server {
  left: max(30px, calc((100vw - 1380px) / 2));
}

.uf-hero-node--discord {
  right: max(30px, calc((100vw - 1380px) / 2));
  text-align: right;
}

.uf-hero-node small,
.uf-hero-node strong {
  display: block;
}

.uf-hero-node small {
  color: var(--uf-cyan-light);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.uf-hero-node strong {
  font-size: 13px;
}

.uf-hero-node__cube {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(53, 183, 213, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 50%, transparent 50%),
    #126c84;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.28);
}

.uf-hero-node__cube svg {
  width: 22px;
}

.uf-particles {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.uf-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(73, 217, 243, 0.85);
  box-shadow: 0 0 12px rgba(53, 183, 213, 0.8);
  animation: uf-float 6s ease-in-out infinite;
}

.uf-particles span:nth-child(1) { top: 22%; left: 12%; animation-delay: -1s; }
.uf-particles span:nth-child(2) { top: 64%; left: 18%; width: 3px; height: 3px; animation-delay: -4s; }
.uf-particles span:nth-child(3) { top: 34%; left: 33%; background: rgba(255, 255, 255, 0.8); animation-delay: -2s; }
.uf-particles span:nth-child(4) { top: 72%; left: 46%; width: 7px; height: 7px; animation-delay: -5s; }
.uf-particles span:nth-child(5) { top: 27%; right: 31%; animation-delay: -3s; }
.uf-particles span:nth-child(6) { top: 61%; right: 19%; width: 4px; height: 4px; animation-delay: -1.5s; }
.uf-particles span:nth-child(7) { top: 18%; right: 11%; background: rgba(214, 168, 62, 0.9); animation-delay: -4.5s; }
.uf-particles span:nth-child(8) { top: 78%; right: 8%; width: 3px; height: 3px; animation-delay: -2.5s; }

@keyframes uf-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0.35; }
  50% { transform: translate3d(8px, -22px, 0) rotate(90deg); opacity: 1; }
}

.uf-scroll-cue {
  bottom: 28px;
  border: 1px solid rgba(53, 183, 213, 0.5);
  background: rgba(5, 15, 20, 0.64);
}

.uf-status-band {
  position: relative;
  background:
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, 0.025) 63px 64px),
    #091114;
}

.uf-block-edge {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 12px;
  pointer-events: none;
}

.uf-block-edge--top {
  top: 0;
  background:
    linear-gradient(135deg, var(--uf-cyan) 25%, transparent 25%) 0 0 / 24px 12px,
    linear-gradient(225deg, var(--uf-cyan) 25%, transparent 25%) 12px 0 / 24px 12px;
  opacity: 0.58;
}

.uf-status-band__grid {
  min-height: 170px;
}

.uf-status-band .uf-kicker,
.uf-section--stone .uf-kicker {
  color: var(--uf-cyan-light);
}

.uf-section {
  position: relative;
}

.uf-section--stone {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 48px 48px,
    #182124;
  color: var(--uf-white);
}

.uf-section-runes {
  position: absolute;
  top: 54px;
  right: 4%;
  display: flex;
  gap: 12px;
  opacity: 0.14;
}

.uf-section-runes span {
  width: 34px;
  height: 34px;
  border: 4px solid var(--uf-cyan-light);
  transform: rotate(45deg);
}

.uf-section-runes span:nth-child(2) {
  width: 18px;
  height: 18px;
  margin-top: 30px;
}

.uf-text-link {
  color: var(--uf-cyan-light);
}

.uf-faction {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  border-top-width: 5px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.018) 31px 32px),
    #222b2d;
  color: var(--uf-white);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.uf-faction:hover {
  border-color: rgba(53, 183, 213, 0.42);
  box-shadow: 10px 16px 0 rgba(0, 0, 0, 0.28), 0 0 26px rgba(22, 132, 162, 0.12);
  transform: translateY(-4px);
}

.uf-faction::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 76px;
  height: 76px;
  border: 8px solid rgba(255, 255, 255, 0.04);
  content: "";
  transform: rotate(45deg);
}

.uf-faction__pixels {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  background:
    linear-gradient(90deg, transparent 50%, rgba(53, 183, 213, 0.16) 50%) 0 0 / 16px 16px,
    linear-gradient(transparent 50%, rgba(53, 183, 213, 0.12) 50%) 0 0 / 16px 16px;
}

.uf-faction__crest {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 50%, transparent 50%),
    #0b1214;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.uf-faction__meta {
  border-color: rgba(255, 255, 255, 0.12);
}

.uf-faction__meta dt {
  color: rgba(255, 255, 255, 0.48);
}

.uf-faction__style {
  color: rgba(255, 255, 255, 0.58);
}

.uf-faction__action {
  position: relative;
  z-index: 2;
  color: var(--uf-cyan-light);
}

.uf-badge--open {
  background: rgba(85, 167, 104, 0.18);
  color: #7ee096;
}

.uf-badge--closed {
  background: rgba(203, 69, 69, 0.18);
  color: #ff8585;
}

.uf-guides {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(69, 104, 61, 0.2) 25%, transparent 25%) 0 0 / 64px 64px,
    #d4d1c7;
}

.uf-guides__vines {
  position: absolute;
  top: -40px;
  right: -120px;
  width: 610px;
  height: 310px;
  background: url("../images/uf-vines-overlay.webp") top right / 730px auto no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.uf-guide-row {
  position: relative;
  padding-inline: 14px;
  background: rgba(244, 242, 236, 0.5);
}

.uf-guide-row:hover {
  background: rgba(255, 255, 255, 0.75);
}

.uf-guide-row__icon {
  border-radius: 2px;
  border-color: rgba(22, 132, 162, 0.35);
  background: rgba(22, 132, 162, 0.08);
  color: var(--uf-cyan);
}

.uf-map-preview {
  border-radius: 2px;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.22);
}

.uf-video-section {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.022) 79px 80px),
    #101719;
  color: var(--uf-white);
}

.uf-video {
  color: var(--uf-white);
}

.uf-video__visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(53, 183, 213, 0.24);
  border-radius: 2px;
  background-position: center;
  background-size: cover;
  box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.26);
}

.uf-video__visual::after {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 16, 0.34);
  content: "";
}

.uf-video__visual--raid {
  background-image: url("../images/uf-factions-hero-v2.webp");
}

.uf-video__visual--base {
  background-image: url("../images/uf-factions-hero.webp");
  background-position: 75% center;
}

.uf-video__visual--economy {
  background-image: url("../images/uf-factions-hero.webp");
  background-position: 92% 78%;
}

.uf-video__visual svg {
  position: relative;
  z-index: 2;
  border-radius: 2px;
}

.uf-video small {
  color: rgba(255, 255, 255, 0.52);
}

.uf-join {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--uf-cyan);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    #851f28;
}

.uf-join::after {
  position: absolute;
  right: 5%;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 18px solid rgba(255, 255, 255, 0.06);
  content: "";
  transform: rotate(45deg);
}

.uf-footer {
  border-top: 1px solid rgba(53, 183, 213, 0.2);
  background: #060c0e;
}

@media (max-width: 1160px) {
  .uf-hero-node {
    display: none;
  }
}

@media (max-width: 980px) {
  .uf-nav {
    top: 82px;
  }
}

@media (max-width: 760px) {
  .uf-brand__logo {
    width: 205px;
  }

  .uf-hero {
    min-height: 760px;
  }

  .uf-hero__image {
    background-position: 63% center;
  }

  .uf-hero__vines {
    height: 360px;
    background-size: auto 330px;
    opacity: 0.56;
  }

  .uf-hero__content {
    padding: 144px 0 108px;
  }

  .uf-hero__logo {
    width: min(350px, 92vw);
  }

  .uf-hero p {
    max-width: 340px;
    font-size: 19px;
  }

  .uf-section-runes {
    display: none;
  }

  .uf-guides__vines {
    right: -270px;
    opacity: 0.16;
  }
}

/* Version 0.3: first-party United Factions archive imagery. */
.uf-hero__image {
  background-image: url("../images/uf-real-hero-2020.jpg");
  background-position: center 46%;
  image-rendering: auto;
}

.uf-hero__shade {
  background:
    linear-gradient(90deg, rgba(2, 9, 12, 0.64), rgba(2, 9, 12, 0.18) 44%, rgba(2, 9, 12, 0.5)),
    linear-gradient(0deg, rgba(2, 9, 12, 0.68), transparent 58%);
}

.uf-hero__archive-note {
  position: absolute;
  z-index: 5;
  bottom: 25px;
  left: max(28px, calc((100vw - 1380px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 6px #000;
  text-transform: uppercase;
}

.uf-hero__archive-note svg {
  width: 15px;
  height: 15px;
  color: var(--uf-cyan-light);
}

.uf-heritage {
  overflow: hidden;
  padding: 110px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 52px 52px,
    #0d1518;
  color: var(--uf-white);
}

.uf-heritage::before {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 540px;
  height: 320px;
  background: url("../images/uf-vines-overlay.webp") top right / 720px auto no-repeat;
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.uf-heritage__heading {
  display: grid;
  align-items: end;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  margin-bottom: 42px;
}

.uf-heritage__heading p {
  color: rgba(255, 255, 255, 0.6);
}

.uf-heritage__gallery {
  display: grid;
  height: 570px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.uf-heritage-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 183, 213, 0.22);
  margin: 0;
  background: #050b0d;
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.3);
}

.uf-heritage-card--wide {
  grid-row: 1 / -1;
}

.uf-heritage-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 8, 10, 0.88), transparent 48%),
    linear-gradient(135deg, rgba(53, 183, 213, 0.1), transparent 42%);
  content: "";
  pointer-events: none;
}

.uf-heritage-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.uf-heritage-card:hover img {
  filter: saturate(1.18) contrast(1.04);
  transform: scale(1.035);
}

.uf-heritage-card figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: var(--uf-white);
}

.uf-heritage-card figcaption strong {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 22px;
}

.uf-heritage-card figcaption span {
  color: var(--uf-cyan-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uf-video__visual--raid {
  background-image: url("../images/uf-real-waterfront-2020.jpg");
}

.uf-video__visual--base {
  background-image: url("../images/uf-real-hero-2020.jpg");
  background-position: center;
}

.uf-video__visual--economy {
  background-image: url("../images/uf-real-beacons-2020.jpg");
  background-position: center;
}

@media (max-width: 860px) {
  .uf-heritage__heading {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .uf-heritage__gallery {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .uf-heritage-card,
  .uf-heritage-card--wide {
    min-height: 320px;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .uf-hero__image {
    background-position: 58% center;
  }

  .uf-hero__archive-note {
    display: none;
  }

  .uf-heritage {
    padding: 78px 0;
  }

  .uf-heritage-card,
  .uf-heritage-card--wide {
    min-height: 260px;
  }

  .uf-heritage-card figcaption {
    right: 16px;
    bottom: 15px;
    left: 16px;
  }

  .uf-heritage-card figcaption strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .uf-particles span,
  .uf-button,
  .uf-hero__image,
  .uf-hero__vines,
  .uf-faction {
    animation: none;
    transition: none;
  }
}
