/* Map */

.uf-v5-map-layout {
  display: grid;
  align-items: start;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.uf-v5-map-board {
  overflow: hidden;
  border: 1px solid var(--uf-v4-line-strong);
  background: #0d1b16;
  box-shadow: var(--uf-v4-shadow);
}

.uf-v5-map-board__toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--uf-v4-line);
  background: #0b171b;
}

.uf-v5-map-board__toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.uf-v5-map-board__toolbar svg {
  width: 16px;
  color: var(--uf-v4-cyan);
}

.uf-v5-map-board__toolbar [role="group"] {
  display: flex;
  gap: 5px;
}

.uf-v5-map-board__toolbar button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--uf-v4-line);
  background: transparent;
  color: var(--uf-v4-muted);
  cursor: pointer;
  font-size: 8px;
  text-transform: uppercase;
}

.uf-v5-map-board__toolbar button[aria-pressed="true"] {
  border-color: var(--uf-v4-cyan);
  color: var(--uf-v4-cyan);
}

.uf-v5-map-board__canvas {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    linear-gradient(28deg, transparent 48%, rgba(255, 255, 255, 0.025) 49%, transparent 51%) 0 0 / 110px 90px,
    radial-gradient(ellipse at 24% 65%, rgba(69, 145, 92, 0.42), transparent 28%),
    radial-gradient(ellipse at 75% 28%, rgba(78, 125, 83, 0.35), transparent 34%),
    #253f2d;
}

.uf-v5-map-board__canvas::before,
.uf-v5-map-board__canvas::after {
  position: absolute;
  width: 52%;
  height: 26%;
  border: 1px solid rgba(103, 209, 138, 0.18);
  background: rgba(103, 209, 138, 0.06);
  content: "";
  transform: rotate(-12deg);
}

.uf-v5-map-board__canvas::before {
  top: 6%;
  left: -8%;
}

.uf-v5-map-board__canvas::after {
  right: -10%;
  bottom: 10%;
  transform: rotate(16deg);
}

.uf-v5-map-board__canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.uf-v5-map-route {
  fill: none;
  stroke: rgba(230, 185, 80, 0.45);
  stroke-dasharray: 10 8;
  stroke-width: 3;
}

.uf-v5-map-route.is-secondary {
  stroke: rgba(63, 208, 238, 0.34);
  stroke-width: 2;
}

.uf-v5-map-region {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.25);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uf-v5-map-region.is-west { top: 24%; left: 8%; }
.uf-v5-map-region.is-east { top: 18%; right: 10%; }
.uf-v5-map-region.is-south { right: 28%; bottom: 13%; }

.uf-v5-map-marker {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 68px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid rgba(230, 185, 80, 0.55);
  background: #09130f;
  color: var(--uf-v4-gold);
  cursor: pointer;
  font-size: 8px;
  place-items: center;
}

.uf-v5-map-marker:hover,
.uf-v5-map-marker:focus-visible {
  border-color: #fff;
  color: #fff;
}

.uf-v5-map-marker svg {
  width: 18px;
}

.uf-v5-map-marker.is-camp { bottom: 18%; left: 12%; }
.uf-v5-map-marker.is-market { top: 28%; left: 46%; }
.uf-v5-map-marker.is-watch { top: 18%; right: 11%; }

.uf-v5-map-board__detail {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--uf-v4-line);
  color: var(--uf-v4-muted);
  font-size: 11px;
}

.uf-v5-map-board__detail svg {
  width: 17px;
  flex: 0 0 auto;
  color: var(--uf-v4-cyan);
}

.uf-v5-map-policy {
  position: sticky;
  top: 108px;
  padding: 30px;
  border: 1px solid var(--uf-v4-line);
  background: var(--uf-v5-panel);
}

.uf-v5-map-policy h2 {
  margin: 8px 0 22px;
  font-size: 32px;
}

.uf-v5-map-policy ul {
  margin-bottom: 26px;
}

.uf-v5-map-policy li:nth-last-child(-n + 2) svg {
  color: var(--uf-v4-crimson);
}

.uf-v5-map-policy .uf-button {
  width: 100%;
}

.uf-v5-integration-grid article {
  border-color: rgba(19, 38, 44, 0.14);
  background: var(--uf-v5-paper-soft);
}

.uf-v5-integration-grid h2 {
  color: var(--uf-v5-ink);
}

.uf-v5-integration-grid p {
  color: #5c686c;
}

/* Support */

.uf-v5-support-grid {
  margin-top: 26px;
}

.uf-v5-merch-section {
  border-top: 1px solid var(--uf-v4-line);
  background: #091419;
}

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

.uf-v5-commerce-checklist h2 {
  margin: 8px 0 0;
  font-size: clamp(40px, 4vw, 60px);
}

.uf-v5-commerce-checklist ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: rgba(19, 38, 44, 0.14);
  list-style: none;
}

.uf-v5-commerce-checklist li {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--uf-v5-paper-soft);
  color: #4e5e63;
  font-size: 13px;
}

.uf-v5-commerce-checklist li svg {
  width: 19px;
  flex: 0 0 auto;
  color: #16849a;
}

/* History */

.uf-v5-featured-news {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  margin-bottom: 90px;
  border: 1px solid var(--uf-v4-line);
  background: var(--uf-v5-panel);
}

.uf-v5-featured-news__image {
  min-height: 500px;
  overflow: hidden;
}

.uf-v5-featured-news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uf-v5-featured-news > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.uf-v5-featured-news h2 {
  margin: 10px 0 18px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.uf-v5-featured-news p {
  color: var(--uf-v4-muted);
  line-height: 1.75;
}

.uf-v5-featured-news > div:last-child > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
}

.uf-v5-featured-news > div:last-child > div span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  text-transform: uppercase;
}

.uf-v5-featured-news svg {
  width: 15px;
  color: var(--uf-v4-cyan);
}

.uf-v5-history-timeline {
  position: relative;
  display: grid;
}

.uf-v5-history-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 112px;
  width: 1px;
  background: var(--uf-v4-line-strong);
  content: "";
}

.uf-v5-history-timeline article {
  position: relative;
  display: grid;
  min-height: 180px;
  align-items: start;
  gap: 28px;
  grid-template-columns: 80px 9px minmax(0, 1fr);
  padding: 28px 0;
}

.uf-v5-history-timeline time {
  color: var(--uf-v4-cyan);
  font-size: 25px;
  font-weight: 900;
}

.uf-v5-history-timeline article > span {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 11px;
  border: 2px solid var(--uf-v4-bg);
  border-radius: 50%;
  background: var(--uf-v4-cyan);
  box-shadow: 0 0 0 1px var(--uf-v4-cyan);
}

.uf-v5-history-timeline small {
  color: var(--uf-v4-muted);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.uf-v5-history-timeline h3 {
  margin: 8px 0 9px;
  font-size: 28px;
}

.uf-v5-history-timeline p {
  max-width: 760px;
  margin: 0;
  color: var(--uf-v4-muted);
  line-height: 1.7;
}

.uf-v5-history-gallery {
  height: 520px;
}

/* Responsive */

@media (max-width: 1120px) {
  .uf-nav__list {
    gap: 10px;
  }

  .uf-v5-faction-teasers,
  .uf-v5-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uf-v5-portal-grid,
  .uf-v5-callout-grid,
  .uf-v5-integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uf-v5-portal-grid > a:last-child,
  .uf-v5-callout-grid article:last-child,
  .uf-v5-integration-grid article:last-child {
    grid-column: 1 / -1;
  }

  .uf-v5-quest-principles > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .uf-v5-section-heading,
  .uf-v5-split,
  .uf-v5-fields-explainer,
  .uf-v5-profile-layout,
  .uf-v5-quest-layout,
  .uf-v5-guide-feature,
  .uf-v5-editorial-note,
  .uf-v5-map-layout,
  .uf-v5-commerce-checklist {
    grid-template-columns: 1fr;
  }

  .uf-v5-section-heading {
    align-items: start;
    gap: 20px;
  }

  .uf-v5-text-link {
    justify-self: start;
  }

  .uf-v5-home-hero {
    min-height: 1050px;
  }

  .uf-v5-home-hero .uf-hero__content {
    min-height: 940px;
  }

  .uf-launch-panel {
    width: min(100%, 620px);
  }

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

  .uf-v5-pillar {
    min-height: 280px;
  }

  .uf-v5-quest-feature__inner,
  .uf-v5-quest-hero__inner {
    grid-template-columns: 1fr;
  }

  .uf-v5-quest-feature__steps {
    max-width: 620px;
  }

  .uf-v5-copy-card,
  .uf-v5-profile-sidebar,
  .uf-v5-quest-sidebar,
  .uf-v5-map-policy {
    position: static;
  }

  .uf-v5-moderation-note {
    align-items: start;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .uf-v5-moderation-note .uf-button {
    grid-column: 2;
    justify-self: start;
  }

  .uf-v5-profile-layout,
  .uf-v5-quest-layout {
    gap: 70px;
  }

  .uf-v5-profile-sidebar,
  .uf-v5-quest-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uf-v5-profile-sidebar > section:first-child,
  .uf-v5-quest-sidebar > section:first-child {
    grid-column: 1 / -1;
  }

  .uf-v5-recruitment-panel {
    grid-template-columns: 1fr;
  }

  .uf-v5-map-policy {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .uf-v5-section {
    padding-block: 72px;
  }

  .uf-v5-breadcrumbs {
    min-height: 48px;
    padding-top: 72px;
  }

  .uf-v5-page-hero,
  .uf-v5-page-hero__inner {
    min-height: 500px;
  }

  .uf-v5-page-hero__inner {
    padding-block: 58px;
  }

  .uf-v5-page-hero__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .uf-v5-page-hero__title > span {
    width: 52px;
    height: 52px;
  }

  .uf-v5-page-hero h1 {
    font-size: clamp(43px, 14vw, 66px);
  }

  .uf-v5-page-hero__copy > p {
    font-size: 16px;
  }

  .uf-v5-seo-band > .uf-shell {
    grid-template-columns: 1fr;
  }

  .uf-v5-next-step > .uf-shell {
    min-height: 360px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .uf-v5-next-step .uf-v5-inline-actions {
    width: 100%;
  }

  .uf-v5-next-step .uf-button {
    width: 100%;
  }

  .uf-forum-toolbar,
  .uf-forum-toolbar form {
    flex-direction: column;
  }

  .uf-forum-toolbar form {
    flex: 0 0 auto;
  }

  .uf-forum-toolbar input {
    flex: 0 0 auto;
    width: 100%;
  }

  .uf-forum-toolbar button,
  .uf-forum-toolbar a {
    width: 100%;
  }

  .uf-forum-table__head {
    display: none;
  }

  .uf-forum-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, 70px);
  }

  .uf-forum-row__main {
    grid-column: 1 / -1;
  }

  .uf-forum-row__fresh {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid #3d2b1b;
    border-left: 0;
    background: rgba(0, 0, 0, 0.18);
  }

  .uf-forum-row > strong {
    grid-row: 3;
    min-height: 46px;
    border-top: 1px solid #3d2b1b;
  }

  .uf-forum-row > strong:nth-of-type(1) {
    grid-column: 2;
  }

  .uf-forum-row > strong:nth-of-type(2) {
    grid-column: 3;
  }

  .uf-minecraft-forum-page #bbpress-forums::before,
  .uf-content-page #bbpress-forums::before {
    font-size: 16px;
  }

  .uf-minecraft-forum-page #bbpress-forums #bbp-search-form > div,
  .uf-content-page #bbpress-forums #bbp-search-form > div {
    flex-direction: column;
  }

  .uf-minecraft-forum-page #bbpress-forums #bbp_search,
  .uf-content-page #bbpress-forums #bbp_search,
  .uf-minecraft-forum-page #bbpress-forums #bbp_search_submit,
  .uf-content-page #bbpress-forums #bbp_search_submit {
    width: 100%;
  }

  .uf-minecraft-forum-page #bbpress-forums li.bbp-header,
  .uf-content-page #bbpress-forums li.bbp-header {
    display: none;
  }

  .uf-minecraft-forum-page #bbpress-forums .bbp-body > ul,
  .uf-content-page #bbpress-forums .bbp-body > ul {
    grid-template-columns: minmax(0, 1fr) repeat(2, 72px);
  }

  .uf-minecraft-forum-page #bbpress-forums .bbp-forum-freshness,
  .uf-content-page #bbpress-forums .bbp-forum-freshness {
    grid-column: 1 / -1;
    border-top: 1px solid #3d2b1b;
    border-left: 0;
    background: rgba(0, 0, 0, 0.18);
  }

  .uf-v5-home-hero {
    min-height: 970px;
  }

  .uf-v5-home-hero .uf-hero__content {
    min-height: 860px;
    padding-top: 110px;
    padding-bottom: 135px;
  }

  .uf-launch-panel {
    gap: 18px;
    padding: 20px;
  }

  .uf-launch-panel__timer div {
    min-height: 82px;
    padding: 10px 8px;
  }

  .uf-join__backdrop {
    background:
      linear-gradient(180deg, rgba(7, 16, 20, 0.82), rgba(7, 16, 20, 0.72)),
      linear-gradient(90deg, rgba(7, 16, 20, 0.7), rgba(7, 16, 20, 0.84)),
      url("../images/uf-legacy-banner-2013.webp") center 42% / cover;
    opacity: 0.9;
  }

  .uf-join h2,
  .uf-join p {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82);
  }

  .uf-v5-pillar-grid,
  .uf-v5-faction-teasers,
  .uf-v5-directory-grid,
  .uf-v5-portal-grid,
  .uf-v5-callout-grid,
  .uf-v5-integration-grid,
  .uf-v5-guide-grid,
  .uf-v5-choice-grid,
  .uf-v5-quest-principles > div:last-child,
  .uf-v5-profile-sidebar,
  .uf-v5-quest-sidebar {
    grid-template-columns: 1fr;
  }

  .uf-v5-portal-grid > a:last-child,
  .uf-v5-callout-grid article:last-child,
  .uf-v5-integration-grid article:last-child,
  .uf-v5-profile-sidebar > section:first-child,
  .uf-v5-quest-sidebar > section:first-child {
    grid-column: auto;
  }

  .uf-v5-pillar,
  .uf-v5-faction-card,
  .uf-v5-directory-card {
    min-height: 0;
  }

  .uf-v5-pillar h3 {
    margin-top: 80px;
  }

  .uf-v5-faction-card > p,
  .uf-v5-directory-card > p {
    min-height: 0;
  }

  .uf-v5-quest-feature,
  .uf-v5-quest-feature__inner {
    min-height: 720px;
  }

  .uf-v5-quest-feature__inner {
    gap: 44px;
  }

  .uf-v5-portal-grid > a {
    min-height: 200px;
    padding: 27px;
  }

  .uf-v5-directory-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .uf-v5-filter-group {
    justify-content: flex-start;
  }

  .uf-v5-moderation-note {
    grid-template-columns: 1fr;
  }

  .uf-v5-moderation-note .uf-button {
    grid-column: auto;
  }

  .uf-v5-profile-hero,
  .uf-v5-profile-hero__inner {
    min-height: 760px;
  }

  .uf-v5-profile-hero__inner {
    align-content: center;
    gap: 34px;
    grid-template-columns: 1fr;
    padding-block: 70px;
  }

  .uf-v5-profile-banner {
    justify-items: start;
  }

  .uf-v5-profile-banner > div {
    width: 100px;
    height: 122px;
  }

  .uf-v5-profile-banner svg {
    width: 42px;
  }

  .uf-v5-profile-intro h1 {
    font-size: clamp(60px, 20vw, 88px);
  }

  .uf-v5-profile-gallery > div:last-child {
    grid-template-columns: 1fr;
  }

  .uf-v5-profile-gallery figure,
  .uf-v5-profile-gallery figure.is-wide {
    min-height: 270px;
    grid-row: auto;
  }

  .uf-v5-recruitment-panel {
    padding: 28px;
  }

  .uf-v5-guide-feature {
    gap: 36px;
    padding: 28px;
  }

  .uf-v5-guide-grid article {
    min-height: 280px;
    gap: 14px;
    grid-template-columns: 24px 31px minmax(0, 1fr);
    padding: 24px 18px;
  }

  .uf-v5-chapter-roadmap article {
    align-items: start;
    gap: 18px;
    grid-template-columns: 28px 48px minmax(0, 1fr);
    padding: 26px 18px;
  }

  .uf-v5-chapter-roadmap article > a,
  .uf-v5-chapter-roadmap article > .uf-v5-roadmap-state {
    grid-column: 3;
  }

  .uf-v5-chapter-icon {
    width: 44px;
    height: 44px;
  }

  .uf-v5-quest-principles article {
    min-height: 210px;
  }

  .uf-v5-quest-hero,
  .uf-v5-quest-hero__inner {
    min-height: 900px;
  }

  .uf-v5-quest-hero__inner {
    align-content: center;
    gap: 45px;
  }

  .uf-v5-quest-hero h1 {
    font-size: clamp(56px, 17vw, 82px);
  }

  .uf-v5-signal-map {
    min-height: 360px;
  }

  .uf-v5-npc-card {
    align-items: start;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 24px 18px;
  }

  .uf-v5-npc-card__portrait {
    width: 72px;
    height: 94px;
  }

  .uf-v5-npc-card__portrait svg {
    width: 30px;
  }

  .uf-v5-npc-card blockquote {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .uf-v5-choice-grid button {
    min-height: 180px;
  }

  .uf-v5-map-board__toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .uf-v5-map-board__canvas {
    min-height: 470px;
  }

  .uf-v5-map-region {
    font-size: 13px;
  }

  .uf-v5-map-marker {
    min-width: 56px;
    min-height: 52px;
    font-size: 7px;
  }

  .uf-v5-featured-news {
    grid-template-columns: 1fr;
  }

  .uf-v5-featured-news__image {
    min-height: 310px;
  }

  .uf-v5-featured-news > div:last-child {
    padding: 32px 24px;
  }

  .uf-v5-history-timeline::before {
    left: 72px;
  }

  .uf-v5-history-timeline article {
    gap: 17px;
    grid-template-columns: 50px 9px minmax(0, 1fr);
  }

  .uf-v5-history-timeline time {
    font-size: 16px;
  }

  .uf-v5-history-gallery {
    height: auto;
  }

  .uf-simple-layout,
  .uf-member-grid,
  .uf-simple-card-grid {
    grid-template-columns: 1fr;
  }

  .uf-simple-nav {
    position: static;
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .uf-v5-section-heading h2,
  .uf-v5-directory-tools h2 {
    font-size: 38px;
  }

  .uf-v5-pillar,
  .uf-v5-faction-card,
  .uf-v5-directory-card,
  .uf-v5-callout-grid article,
  .uf-v5-integration-grid article {
    padding: 24px;
  }

  .uf-v5-profile-layout,
  .uf-v5-quest-layout {
    gap: 55px;
  }

  .uf-v5-quest-objectives li {
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding-inline: 17px;
  }

  .uf-v5-choice-result {
    padding: 20px;
  }

  .uf-v5-map-board__toolbar [role="group"] {
    width: 100%;
  }

  .uf-v5-map-board__toolbar button {
    flex: 1;
    padding-inline: 6px;
  }

  .uf-simple-card,
  .uf-simple-panel {
    padding: 20px;
  }
}

