/* Guides */

.uf-v5-guide-feature {
  display: grid;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-bottom: 80px;
  padding: 48px;
  border: 1px solid var(--uf-v4-line-strong);
  background:
    linear-gradient(135deg, rgba(63, 208, 238, 0.1), transparent 42%),
    var(--uf-v5-panel);
}

.uf-v5-guide-feature h2 {
  margin: 9px 0 16px;
  font-size: clamp(38px, 4vw, 58px);
}

.uf-v5-guide-feature p {
  max-width: 660px;
  color: var(--uf-v4-muted);
  line-height: 1.75;
}

.uf-v5-guide-feature ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--uf-v4-line);
  list-style: none;
}

.uf-v5-guide-feature li {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: #0b171c;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.uf-v5-guide-feature li span {
  color: var(--uf-v4-cyan);
  font-weight: 900;
}

.uf-v5-guide-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--uf-v4-line);
  background: var(--uf-v4-line);
}

.uf-v5-guide-grid article {
  display: grid;
  min-height: 250px;
  align-items: start;
  gap: 20px;
  grid-template-columns: 30px 38px minmax(0, 1fr);
  padding: 30px;
  background: var(--uf-v5-panel);
}

.uf-v5-guide-grid article[hidden] {
  display: none;
}

.uf-v5-guide-card__number {
  color: #53676e;
  font-size: 12px;
  font-weight: 900;
}

.uf-v5-guide-grid article > svg {
  width: 27px;
  color: var(--uf-v4-cyan);
}

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

.uf-v5-guide-grid h3 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.uf-v5-guide-grid p {
  margin: 0;
  color: var(--uf-v4-muted);
  line-height: 1.6;
}

.uf-v5-guide-grid button,
.uf-v5-guide-grid article > a {
  display: inline-flex;
  align-items: center;
  align-self: end;
  justify-content: space-between;
  grid-column: 3;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--uf-v4-cyan);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.uf-v5-guide-grid button svg,
.uf-v5-guide-grid article > a svg {
  width: 15px;
}

.uf-v5-editorial-note {
  display: grid;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
}

.uf-v5-editorial-note > div > svg {
  width: 34px;
  margin-bottom: 24px;
  color: #17849a;
}

.uf-v5-editorial-note h2 {
  margin: 8px 0 0;
  font-size: clamp(36px, 4vw, 55px);
}

.uf-v5-editorial-note > p {
  font-size: 16px;
  line-height: 1.8;
}

/* Quests */

.uf-v5-boundary-banner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 72px;
  padding: 28px 32px;
  border: 1px solid rgba(230, 185, 80, 0.3);
  background: rgba(230, 185, 80, 0.065);
}

.uf-v5-boundary-banner > svg {
  width: 28px;
  flex: 0 0 auto;
  color: var(--uf-v4-gold);
}

.uf-v5-boundary-banner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.uf-v5-boundary-banner p {
  margin: 0;
  color: var(--uf-v4-muted);
  line-height: 1.65;
}

.uf-v5-chapter-roadmap {
  position: relative;
  display: grid;
  gap: 1px;
  border: 1px solid var(--uf-v4-line);
  background: var(--uf-v4-line);
}

.uf-v5-chapter-roadmap article {
  display: grid;
  min-height: 170px;
  align-items: center;
  gap: 26px;
  grid-template-columns: 42px 62px minmax(0, 1fr) auto;
  padding: 28px 34px;
  background: var(--uf-v5-panel);
}

.uf-v5-chapter-roadmap article.is-detailed {
  background:
    linear-gradient(90deg, rgba(230, 185, 80, 0.1), transparent 42%),
    var(--uf-v5-panel-raised);
}

.uf-v5-chapter-number {
  color: #556b73;
  font-size: 20px;
  font-weight: 900;
}

.uf-v5-chapter-icon {
  display: grid;
  width: 54px;
  height: 54px;
  border: 1px solid var(--uf-v4-line-strong);
  color: var(--uf-v4-cyan);
  place-items: center;
  transform: rotate(45deg);
}

.uf-v5-chapter-roadmap article.is-detailed .uf-v5-chapter-icon {
  border-color: rgba(230, 185, 80, 0.52);
  color: var(--uf-v4-gold);
}

.uf-v5-chapter-icon svg {
  width: 23px;
  transform: rotate(-45deg);
}

.uf-v5-chapter-roadmap small {
  color: var(--uf-v4-cyan);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.uf-v5-chapter-roadmap h3 {
  margin: 6px 0 8px;
  font-size: 27px;
}

.uf-v5-chapter-roadmap p {
  max-width: 720px;
  margin: 0;
  color: var(--uf-v4-muted);
  line-height: 1.6;
}

.uf-v5-chapter-roadmap a,
.uf-v5-roadmap-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--uf-v4-gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.uf-v5-roadmap-state {
  color: #617278;
}

.uf-v5-chapter-roadmap a svg {
  width: 14px;
}

.uf-v5-quest-principles > div:last-child {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
  border: 1px solid rgba(19, 38, 44, 0.14);
  background: rgba(19, 38, 44, 0.14);
}

.uf-v5-quest-principles > div:first-child h2 {
  max-width: 740px;
  margin: 8px 0 0;
  font-size: clamp(38px, 4vw, 58px);
}

.uf-v5-quest-principles article {
  min-height: 250px;
  padding: 28px;
  background: var(--uf-v5-paper-soft);
}

.uf-v5-quest-principles article span {
  color: #18849a;
  font-size: 21px;
  font-weight: 900;
}

.uf-v5-quest-principles h3 {
  margin: 66px 0 12px;
  font-size: 24px;
}

.uf-v5-quest-principles p {
  margin: 0;
  line-height: 1.6;
}

/* Detailed quest */

.uf-v5-quest-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.uf-v5-quest-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../images/uf-real-beacons-2020.jpg") center / cover;
  filter: saturate(0.78) contrast(1.12);
}

.uf-v5-quest-hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 10, 0.98), rgba(3, 12, 10, 0.72) 56%, rgba(3, 12, 10, 0.3)),
    linear-gradient(0deg, rgba(3, 12, 10, 0.92), transparent 52%);
}

.uf-v5-quest-hero__inner {
  display: grid;
  min-height: 720px;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) 430px;
  padding-block: 80px;
}

.uf-v5-quest-hero h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.92;
}

.uf-v5-quest-hero__inner > div:first-child > p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
  line-height: 1.75;
}

.uf-v5-quest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 30px;
}

.uf-v5-quest-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.uf-v5-quest-meta svg {
  width: 15px;
  color: var(--uf-v4-gold);
}

.uf-v5-signal-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(230, 185, 80, 0.32);
  background:
    linear-gradient(35deg, transparent 49%, rgba(255, 255, 255, 0.035) 50%, transparent 51%) 0 0 / 72px 72px,
    #14231c;
  box-shadow: var(--uf-v4-shadow);
}

.uf-v5-signal-map__terrain {
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(103, 209, 138, 0.2), transparent 32%),
    radial-gradient(ellipse at 74% 26%, rgba(230, 185, 80, 0.15), transparent 25%);
  transform: rotate(-8deg);
}

.uf-v5-signal-map > span {
  position: absolute;
  display: grid;
  min-width: 52px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid rgba(230, 185, 80, 0.55);
  background: #0a1510;
  color: var(--uf-v4-gold);
  font-size: 8px;
  font-weight: 900;
  place-items: center;
  text-align: center;
}

.uf-v5-signal-map > span svg {
  width: 18px;
}

.uf-v5-signal-map .is-camp { bottom: 13%; left: 10%; }
.uf-v5-signal-map .is-one { top: 22%; left: 32%; }
.uf-v5-signal-map .is-two { top: 48%; right: 25%; }
.uf-v5-signal-map .is-three { top: 15%; right: 11%; }

.uf-v5-signal-map > small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  text-transform: uppercase;
}

.uf-v5-npc-card {
  display: grid;
  align-items: center;
  gap: 30px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 36px;
  border: 1px solid var(--uf-v4-line);
  background: var(--uf-v5-panel);
}

.uf-v5-npc-card__portrait {
  display: grid;
  width: 110px;
  height: 140px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  background: linear-gradient(145deg, rgba(230, 185, 80, 0.25), #111d1a);
  color: var(--uf-v4-gold);
  place-items: center;
}

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

.uf-v5-npc-card h2 {
  margin: 7px 0 3px;
  font-size: 33px;
}

.uf-v5-npc-card small {
  color: var(--uf-v4-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uf-v5-npc-card blockquote {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
}

.uf-v5-quest-objectives,
.uf-v5-choice-section {
  margin-top: 80px;
}

.uf-v5-quest-objectives ol {
  display: grid;
  margin: 0;
  padding: 0;
  border: 1px solid var(--uf-v4-line);
  list-style: none;
}

.uf-v5-quest-objectives li {
  display: grid;
  min-height: 94px;
  align-items: center;
  gap: 22px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px 26px;
  border-top: 1px solid var(--uf-v4-line);
  background: var(--uf-v5-panel);
}

.uf-v5-quest-objectives li:first-child {
  border-top: 0;
}

.uf-v5-quest-objectives li > span {
  color: var(--uf-v4-gold);
  font-size: 16px;
  font-weight: 900;
}

.uf-v5-quest-objectives li p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

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

.uf-v5-choice-grid button {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--uf-v4-line);
  background: var(--uf-v5-panel);
  color: var(--uf-v4-copy);
  cursor: pointer;
  text-align: left;
}

.uf-v5-choice-grid button:hover,
.uf-v5-choice-grid button.is-selected {
  border-color: rgba(230, 185, 80, 0.52);
  background: rgba(230, 185, 80, 0.08);
}

.uf-v5-choice-grid button > svg {
  width: 28px;
  color: var(--uf-v4-gold);
}

.uf-v5-choice-grid button span {
  margin-top: auto;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.uf-v5-choice-grid button small {
  margin-top: 8px;
  color: var(--uf-v4-muted);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.uf-v5-choice-result {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 12px;
  padding: 24px 28px;
  border: 1px solid rgba(230, 185, 80, 0.28);
  background: rgba(230, 185, 80, 0.055);
}

.uf-v5-choice-result > svg {
  width: 24px;
  flex: 0 0 auto;
  color: var(--uf-v4-gold);
}

.uf-v5-choice-result small {
  color: var(--uf-v4-gold);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.uf-v5-choice-result p {
  margin: 5px 0 0;
  color: var(--uf-v4-muted);
  line-height: 1.65;
}

.uf-v5-quest-sidebar li svg {
  color: var(--uf-v4-gold);
}

.uf-v5-quest-sidebar .uf-v5-boundary-card > svg {
  width: 28px;
  margin-bottom: 20px;
  color: var(--uf-v4-crimson);
}

.uf-v5-quest-sidebar .uf-v5-boundary-card p {
  margin: 0;
  color: var(--uf-v4-muted);
  font-size: 12px;
  line-height: 1.7;
}

