﻿:root {
  color-scheme: dark;
  --amber: #d99a3e;
  --amber-2: #f0cf8a;
  --spice: #b85f2f;
  --copper: #8f4a2e;
  --teal: #66bfb5;
  --green: #9bcf8a;
  --ink: #090807;
  --surface: #14110d;
  --surface-2: #1c1812;
  --surface-3: #282016;
  --line: rgba(224, 169, 83, 0.19);
  --line-strong: rgba(239, 198, 133, 0.38);
  --text: #fff1dc;
  --muted: #cdbb9f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
  --content: 1600px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  z-index: -3;
  background: url("assets/arrakis-hero.png") center / cover no-repeat;
}

body::after {
  z-index: -2;
  background:
    linear-gradient(174deg, transparent 0 63%, rgba(217, 154, 62, 0.11) 64%, transparent 76%),
    linear-gradient(166deg, transparent 0 70%, rgba(184, 95, 47, 0.12) 71%, transparent 84%),
    radial-gradient(circle at 18% 22%, rgba(224, 169, 83, 0.08), transparent 18%),
    radial-gradient(circle at 71% 36%, rgba(204, 105, 48, 0.2), transparent 28%),
    repeating-linear-gradient(105deg, transparent 0 46px, rgba(224, 169, 83, 0.025) 47px 48px),
    linear-gradient(90deg, rgba(8, 7, 6, 0.94), rgba(18, 13, 9, 0.68) 48%, rgba(35, 21, 12, 0.32)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.18), rgba(8, 7, 6, 0.88));
}

.dune-decor {
  position: fixed;
  top: 44px;
  bottom: 0;
  z-index: -1;
  width: clamp(120px, 13vw, 240px);
  pointer-events: none;
  opacity: 0.78;
}

.dune-decor::before,
.dune-decor::after {
  position: absolute;
  content: "";
}

.dune-decor::before {
  top: 42px;
  bottom: 48px;
  width: 1px;
  background:
    linear-gradient(180deg, transparent, rgba(224, 169, 83, 0.42), transparent);
}

.dune-decor::after {
  top: 110px;
  width: clamp(62px, 7vw, 132px);
  height: 320px;
  border-top: 1px solid rgba(224, 169, 83, 0.3);
  border-bottom: 1px solid rgba(224, 169, 83, 0.18);
  background:
    linear-gradient(90deg, rgba(224, 169, 83, 0.13), transparent),
    repeating-linear-gradient(180deg, rgba(224, 169, 83, 0.13) 0 1px, transparent 1px 18px);
  opacity: 0.7;
}

.dune-decor--left {
  left: 0;
}

.dune-decor--left::before {
  left: 32px;
}

.dune-decor--left::after {
  left: 0;
}

.dune-decor--right {
  right: 0;
}

.dune-decor--right::before {
  right: 32px;
}

.dune-decor--right::after {
  right: 0;
}

.sandworm {
  position: fixed;
  top: 74px;
  z-index: -1;
  width: clamp(520px, 34vw, 820px);
  height: min(78vh, 760px);
  pointer-events: none;
  opacity: 0.68;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.62), transparent 26%, transparent 76%, rgba(9, 8, 7, 0.78)),
    url("assets/sandworm-side.jpg") center / cover no-repeat;
  mix-blend-mode: screen;
  filter:
    saturate(1.12)
    contrast(1.12)
    drop-shadow(0 28px 72px rgba(0, 0, 0, 0.88));
  mask-image:
    radial-gradient(ellipse at center, #000 0 46%, rgba(0, 0, 0, 0.72) 62%, transparent 86%),
    linear-gradient(180deg, transparent 0, #000 10%, #000 82%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(ellipse at center, #000 0 46%, rgba(0, 0, 0, 0.72) 62%, transparent 86%),
    linear-gradient(180deg, transparent 0, #000 10%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.sandworm--left {
  left: clamp(-400px, -15vw, -170px);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.sandworm--right {
  right: clamp(-400px, -15vw, -170px);
  transform: scaleX(-1) rotate(-2deg);
  transform-origin: right center;
}

.app-drag-region {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 82;
  height: 44px;
  background:
    linear-gradient(90deg, #0b0907, #171008 58%, #0c0907);
  -webkit-app-region: drag;
}

.app-titlemark {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 83;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--amber-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  -webkit-app-region: drag;
}

.app-titlemark img {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(239, 198, 133, 0.45);
  background: #0c0907;
}

a {
  color: inherit;
}

.hero {
  min-height: 46vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: visible;
}

.hero::before {
  position: absolute;
  right: clamp(22px, 6vw, 92px);
  bottom: 34px;
  z-index: -1;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(224, 169, 83, 0.2);
  background:
    radial-gradient(circle, transparent 0 38%, rgba(224, 169, 83, 0.18) 39% 40%, transparent 41%),
    conic-gradient(from 18deg, transparent 0 18deg, rgba(224, 169, 83, 0.12) 18deg 20deg, transparent 20deg 64deg, rgba(184, 95, 47, 0.14) 64deg 66deg, transparent 66deg);
  opacity: 0.65;
  content: "";
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  height: 92px;
  background:
    linear-gradient(174deg, transparent 0 37%, rgba(217, 154, 62, 0.22) 38%, transparent 40%),
    linear-gradient(170deg, transparent 0 52%, rgba(184, 95, 47, 0.18) 53%, transparent 55%),
    linear-gradient(180deg, transparent, rgba(9, 8, 7, 0.82));
  content: "";
}

.hero__ornament {
  position: absolute;
  left: clamp(20px, 6vw, 76px);
  top: 120px;
  width: min(320px, 34vw);
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  gap: 10px;
  opacity: 0.72;
  pointer-events: none;
}

.hero__ornament span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 169, 83, 0.78), transparent);
}

.hero__ornament i {
  height: 10px;
  border: 1px solid rgba(224, 169, 83, 0.7);
  transform: skewX(-28deg);
  background: rgba(184, 95, 47, 0.28);
}

.hero__sigils {
  position: absolute;
  right: clamp(22px, 8vw, 128px);
  top: 152px;
  z-index: 1;
  display: grid;
  gap: 12px;
  color: rgba(240, 207, 138, 0.74);
  font-size: clamp(1.4rem, 2.2vw, 2.3rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(217, 154, 62, 0.35);
  pointer-events: none;
}

.hero__sigils b {
  font-weight: 400;
  transform: skewX(-8deg);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  display: none;
  object-fit: cover;
  z-index: -3;
}

.hero__shade {
  display: none;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 11, 11, 0.94), rgba(12, 17, 17, 0.58) 48%, rgba(12, 17, 17, 0.2)),
    linear-gradient(0deg, var(--ink), rgba(13, 17, 17, 0.1) 42%, rgba(13, 17, 17, 0.28));
}

.topbar {
  position: fixed;
  top: 58px;
  left: 50%;
  z-index: 80;
  display: flex;
  gap: 2px;
  align-items: center;
  transform: translateX(-50%);
  padding: 5px;
  border: 1px solid rgba(239, 198, 133, 0.26);
  border-radius: 4px;
  background: rgba(12, 9, 6, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 2px;
  color: #fff8ea;
  font-weight: 800;
  text-decoration: none;
}

.topbar a:hover {
  background: rgba(239, 198, 133, 0.12);
}

.topbar a.is-active {
  background: linear-gradient(180deg, #e0a953, #9e552b);
  color: #130d07;
}

.reset-timer {
  position: fixed;
  top: 58px;
  right: 18px;
  z-index: 82;
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(239, 198, 133, 0.42);
  border-radius: 4px;
  background: rgba(12, 9, 6, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.reset-timer div {
  display: grid;
  gap: 1px;
}

.reset-timer span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.reset-timer strong {
  min-width: 106px;
  color: #fff8ea;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}

.reset-timer select {
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  padding: 0 8px;
  color: #fff8ea;
  background: #201711;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.reset-timer select:focus {
  outline: 2px solid rgba(242, 189, 97, 0.65);
  outline-offset: 2px;
}

.reset-timer option {
  color: #fff8ea;
  background: #120d08;
  font-weight: 900;
}

.settings-button {
  position: fixed;
  top: 0;
  right: 122px;
  z-index: 83;
  width: 46px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff8ea;
  background: #120d08;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 900;
  -webkit-app-region: no-drag;
}

.settings-button:hover {
  color: #fff8ea;
  background: rgba(239, 198, 133, 0.16);
}

.settings-button:active {
  background: rgba(255, 255, 255, 0.2);
}

.hero__content {
  width: min(920px, calc(100% - 40px));
  margin: 78px 0 42px clamp(20px, 6vw, 76px);
  padding-left: 18px;
  border-left: 3px solid rgba(224, 169, 83, 0.76);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.65rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.58);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.hero__content p:not(.eyebrow) {
  max-width: 720px;
  color: #fff1d4;
  font-size: 0.98rem;
  text-wrap: pretty;
}

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

.button,
.sectionlink,
.clear-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.button {
  position: relative;
  overflow: hidden;
  padding: 10px 17px;
  border: 1px solid var(--line);
}

.button::after {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(110deg, transparent 0 11px, rgba(255, 241, 220, 0.08) 12px, transparent 13px);
  content: "";
  opacity: 0.34;
  pointer-events: none;
}

.button--primary {
  background: linear-gradient(180deg, #e0a953, #9d552b);
  border-color: var(--amber);
  color: #130d07;
}

.button--primary:hover {
  background: linear-gradient(180deg, #f0cf8a, #b85f2f);
}

.button--ghost {
  background: rgba(13, 10, 7, 0.62);
  backdrop-filter: blur(12px);
}

.button--danger {
  border-color: rgba(255, 116, 116, 0.5);
  color: #fff8ea;
  background: #8d2525;
}

.button--danger:hover {
  background: #aa3030;
}

main {
  background:
    linear-gradient(
      90deg,
      rgba(9, 8, 7, 0.04) 0,
      rgba(18, 13, 8, 0.42) 14%,
      rgba(20, 17, 13, 0.93) 27%,
      rgba(31, 23, 15, 0.94) 73%,
      rgba(18, 13, 8, 0.42) 86%,
      rgba(9, 8, 7, 0.04) 100%
    ),
    radial-gradient(circle at 70% 8%, rgba(184, 95, 47, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(9, 8, 7, 0.3), rgba(20, 17, 13, 0.58) 34%, rgba(31, 23, 15, 0.66) 100%);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}

.toolband {
  border-top: 1px solid rgba(224, 169, 83, 0.12);
  border-bottom: 1px solid rgba(224, 169, 83, 0.16);
  background:
    linear-gradient(90deg, rgba(224, 169, 83, 0.06), transparent 34%, rgba(184, 95, 47, 0.07)),
    rgba(10, 8, 6, 0.86);
  backdrop-filter: blur(18px);
}

.section,
.contact-atlas,
.mentor-series,
.quest-index,
.questguide {
  scroll-margin-top: 84px;
}

.toolband__inner,
.resultline,
.section,
footer {
  width: min(var(--content), calc(100% - 56px));
  margin: 0 auto;
}

.toolband__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 15px 0 8px;
}

.resultline {
  min-height: 27px;
  color: var(--muted);
  font-size: 0.88rem;
}

.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.search input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 7, 6, 0.72);
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  outline: none;
}

.search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 154, 62, 0.16);
}

.clear-button {
  cursor: pointer;
}

.clear-button {
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.62);
  color: var(--text);
  padding: 0 12px;
}

.clear-button:hover {
  border-color: var(--line-strong);
  background: rgba(224, 169, 83, 0.1);
}

.section {
  position: relative;
  padding: 56px 0;
}

.section::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(var(--content), calc(100% - 56px));
  height: 1px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(224, 169, 83, 0.48), rgba(184, 95, 47, 0.18), transparent);
  content: "";
  pointer-events: none;
}

.section::after {
  position: absolute;
  top: 10px;
  left: max(28px, calc((100% - var(--content)) / 2));
  width: 86px;
  height: 16px;
  border-left: 2px solid rgba(224, 169, 83, 0.48);
  border-bottom: 1px solid rgba(224, 169, 83, 0.28);
  transform: skewX(-28deg);
  content: "";
  pointer-events: none;
}

.overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1.3fr;
  gap: 34px;
  align-items: stretch;
}

.overview__copy p:not(.eyebrow) {
  max-width: 470px;
  color: var(--muted);
}

.statuspanel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.statuspanel article,
.card,
.faction {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(224, 169, 83, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(255, 241, 220, 0.065), rgba(255, 241, 220, 0.025)),
    var(--surface);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.statuspanel article::before,
.card::before,
.faction::before,
.questguide::before,
.contact-atlas::before,
.quest-index::before,
.mentor-series::before,
.method-live-panel::before,
.hagga-resource-map::before {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-top: 1px solid rgba(224, 169, 83, 0.52);
  border-right: 1px solid rgba(224, 169, 83, 0.52);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.statuspanel article::after,
.card::after,
.faction::after {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 42px;
  height: 7px;
  background:
    linear-gradient(90deg, rgba(224, 169, 83, 0.48), rgba(184, 95, 47, 0.25), transparent);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.statuspanel article {
  min-height: 168px;
  padding: 20px;
}

.statuspanel__number {
  display: block;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 2.05rem;
  font-weight: 950;
  line-height: 1;
}

.statuspanel strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.statuspanel p,
.card p,
.faction p,
.faction dd,
footer {
  color: var(--muted);
}

.card:hover,
.sourceitem:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(224, 169, 83, 0.14);
}

.sectionlink {
  flex: 0 0 auto;
  border: 1px solid rgba(224, 169, 83, 0.45);
  color: var(--amber-2);
  padding: 0 13px;
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 14px;
}

.card {
  min-height: 326px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card--feature {
  background:
    linear-gradient(145deg, rgba(217, 154, 62, 0.18), rgba(184, 95, 47, 0.1)),
    var(--surface-2);
}

.tag {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 189, 97, 0.24);
  border-radius: 2px;
  background: rgba(217, 154, 62, 0.13);
  color: var(--amber-2);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 18px;
}

.chips span {
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(224, 169, 83, 0.12);
  color: #efe2cf;
  font-size: 0.82rem;
  font-weight: 800;
}

.card a {
  margin-top: auto;
  color: var(--amber-2);
  font-weight: 900;
  text-decoration: none;
}

.card a:hover,
.sourceitem:hover,
.sectionlink:hover {
  text-decoration: underline;
}

.questguide {
  margin-top: 22px;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    var(--surface);
}

.contact-atlas {
  margin-top: 22px;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(217, 154, 62, 0.1), rgba(255, 241, 220, 0.035)),
    var(--surface);
}

.quest-index {
  margin-top: 22px;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(242, 189, 97, 0.08), rgba(255, 255, 255, 0.04)),
    var(--surface);
}

.mentor-series {
  margin-top: 22px;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(184, 95, 47, 0.11), rgba(255, 241, 220, 0.035)),
    var(--surface);
}

.mentor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.mentor-grid details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 241, 220, 0.045);
  overflow: hidden;
}

.mentor-grid summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 950;
}

.mentor-grid summary small {
  color: var(--amber);
  font-size: 0.82rem;
}

.mentor-body {
  padding: 0 16px 16px;
}

.mentor-body p,
.mentor-body ol {
  color: var(--muted);
}

.mentor-body ol {
  padding-left: 22px;
}

.mentor-body li + li {
  margin-top: 8px;
}

.solution-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.solution-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 241, 220, 0.04);
}

.solution-step h5 {
  margin: 0 0 9px;
  color: var(--amber-2);
  font-size: 1rem;
}

.solution-step p {
  margin: 0;
}

.solution-step p + p {
  margin-top: 7px;
}

.solution-step strong {
  color: var(--text);
}

.mentor-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.mentor-locations--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mentor-location-card {
  min-height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 17, 17, 0.05), rgba(13, 17, 17, 0.82)),
    repeating-linear-gradient(0deg, transparent, transparent 26px, rgba(255, 255, 255, 0.055) 27px),
    repeating-linear-gradient(90deg, transparent, transparent 26px, rgba(255, 255, 255, 0.055) 27px),
    linear-gradient(135deg, rgba(217, 154, 62, 0.18), rgba(184, 95, 47, 0.1));
}

.mentor-location-card::before {
  position: absolute;
  inset: 22px 20px 64px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  content: "";
}

.mentor-location-card::after {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid var(--amber);
  border-radius: 2px;
  background: #111;
  box-shadow: 0 0 0 7px rgba(242, 189, 97, 0.12);
  content: "";
  transform: translateX(-50%);
}

.mentor-location-card--image {
  min-height: 0;
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.055);
}

.mentor-location-card--image::before,
.mentor-location-card--image::after {
  display: none;
}

.mentor-location-card--image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #050706;
}

.mentor-location-card__body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.mentor-location-card--arrakeen::after,
.mentor-location-card--harko::after {
  top: 52px;
  left: 62%;
}

.mentor-location-card--station::after {
  top: 64px;
  left: 38%;
}

.mentor-location-card span {
  width: fit-content;
  position: relative;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(13, 10, 7, 0.78);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.mentor-location-card strong,
.mentor-location-card small,
.mentor-location-card .inline-map-button {
  position: relative;
  z-index: 1;
}

.mentor-location-card strong {
  color: var(--text);
  font-size: 1rem;
}

.mentor-location-card small {
  color: var(--muted);
  line-height: 1.35;
}

.quest-index-grid {
  display: grid;
  gap: 10px;
}

.quest-index details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.quest-index summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  color: var(--amber-2);
  cursor: pointer;
  font-weight: 950;
}

.quest-list-block {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.quest-list-block h4 {
  margin: 10px 0 0;
  color: var(--text);
}

.quest-list-block p {
  margin: 0;
  color: var(--muted);
}

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

.contact-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card h4 {
  margin: 0 0 10px;
  color: var(--amber-2);
  font-size: 1.02rem;
}

.contact-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact-card li + li {
  margin-top: 8px;
}

.contact-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.contact-photos img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: #050706;
}

.contact-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 169, 83, 0.24);
  border-radius: 4px;
  background: rgba(217, 154, 62, 0.08);
  color: var(--muted);
}

.inline-map-button {
  min-height: 38px;
  margin-top: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(224, 169, 83, 0.45);
  border-radius: 3px;
  background: rgba(217, 154, 62, 0.1);
  color: var(--amber-2);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.inline-map-button:hover {
  background: rgba(217, 154, 62, 0.18);
  border-color: rgba(224, 169, 83, 0.7);
}

.questguide__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.questguide__head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.quest-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.quest-column {
  min-width: 0;
}

.quest-column h4 {
  margin: 0 0 10px;
  color: var(--amber-2);
  font-size: 1.05rem;
}

.quest-solutions {
  display: grid;
  gap: 10px;
}

.quest-solutions--story {
  max-width: 860px;
}

.quest-solutions details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.quest-solutions summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 950;
}

.quest-solutions summary small {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
}

.quest-solutions ol {
  margin: 0;
  padding: 4px 28px 18px 42px;
  color: var(--muted);
}

.quest-solutions li + li {
  margin-top: 8px;
}

.questnote {
  margin: -6px 16px 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  background: rgba(217, 154, 62, 0.08);
}

.trial-atlas {
  margin: 0 16px 18px;
  padding: 16px;
  border: 1px solid rgba(224, 169, 83, 0.24);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(217, 154, 62, 0.09), rgba(184, 95, 47, 0.055)),
    rgba(8, 7, 6, 0.34);
}

.trial-atlas__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(224, 169, 83, 0.16);
}

.trial-atlas__head h4 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.trial-atlas__head p:not(.eyebrow),
.trial-overview figcaption,
.trial-card p,
.trial-puzzle-notes li {
  color: var(--muted);
}

.trial-overview {
  margin: 0 0 14px;
}

.trial-overview img,
.trial-card img {
  width: 100%;
  display: block;
  border: 1px solid rgba(239, 198, 133, 0.26);
  border-radius: 4px;
  background: #080706;
}

.trial-overview img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.trial-overview figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
}

.trial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 10px;
}

.trial-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(230px, 1.28fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(224, 169, 83, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 241, 220, 0.055), rgba(255, 241, 220, 0.02)),
    rgba(0, 0, 0, 0.16);
}

.trial-card--final {
  grid-column: 1 / -1;
  grid-template-columns: minmax(320px, 0.55fr) 1.45fr;
  border-color: rgba(102, 191, 181, 0.42);
}

.trial-card span {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(242, 189, 97, 0.24);
  border-radius: 2px;
  color: var(--amber);
  background: rgba(217, 154, 62, 0.1);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trial-card h5,
.trial-puzzle-notes h5 {
  margin: 0 0 8px;
  color: var(--amber-2);
  font-size: 1rem;
}

.trial-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.36;
}

.trial-card p + p {
  margin-top: 6px;
}

.trial-steps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.trial-steps li + li {
  margin-top: 7px;
}

.trial-steps strong {
  color: var(--amber-2);
}

.trial-symbol-solution {
  margin: 12px 0;
}

.trial-symbol-solution img {
  max-width: 760px;
  border-color: rgba(102, 191, 181, 0.38);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.zoomable-image {
  cursor: zoom-in;
}

.zoomable-image:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.trial-symbol-solution figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.trial-puzzle-notes {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(102, 191, 181, 0.24);
  border-radius: 4px;
  background: rgba(102, 191, 181, 0.06);
}

.trial-puzzle-notes ul {
  margin: 0;
  padding-left: 20px;
}

.trial-puzzle-notes li + li {
  margin-top: 7px;
}

.landsraad-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.landsraad-brief article,
.landsraad-missions,
.landsraad-allnames {
  padding: 16px;
  border: 1px solid rgba(224, 169, 83, 0.2);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(217, 154, 62, 0.08), rgba(102, 191, 181, 0.035)),
    rgba(8, 7, 6, 0.28);
}

.landsraad-brief h3,
.landsraad-allnames h3 {
  margin: 6px 0 10px;
  color: var(--amber-2);
}

.landsraad-brief ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.landsraad-brief li + li {
  margin-top: 7px;
}

.landsraad-brief p,
.landsraad-allnames p {
  color: var(--muted);
}

.landsraad-missions details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.landsraad-missions details + details {
  margin-top: 10px;
}

.landsraad-missions summary {
  padding: 14px 16px;
  color: var(--amber-2);
  cursor: pointer;
  font-weight: 950;
}

.landsraad-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.landsraad-mission-grid article {
  padding: 12px;
  border: 1px solid rgba(224, 169, 83, 0.15);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.17);
}

.landsraad-mission-grid h4 {
  margin: 0 0 8px;
  color: var(--text);
}

.landsraad-mission-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.38;
}

.landsraad-mission-grid p + p {
  margin-top: 6px;
}

.landsraad-allnames {
  margin-top: 14px;
}

.landsraad-namegrid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landsraad-namegrid span {
  padding: 6px 8px;
  border: 1px solid rgba(239, 198, 133, 0.18);
  border-radius: 3px;
  color: var(--text);
  background: rgba(255, 241, 220, 0.07);
  font-size: 0.88rem;
  font-weight: 850;
}

.factions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.faction {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  overflow: hidden;
}

.faction--atreides {
  background: linear-gradient(145deg, rgba(93, 129, 121, 0.18), rgba(255, 241, 220, 0.045));
}

.faction--harkonnen {
  background: linear-gradient(145deg, rgba(185, 100, 73, 0.24), rgba(255, 255, 255, 0.055));
}

.faction--minor {
  background: linear-gradient(145deg, rgba(242, 189, 97, 0.16), rgba(255, 255, 255, 0.055));
}

.faction dl {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.faction dl div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faction dt {
  color: var(--text);
  font-weight: 900;
}

.faction dd {
  margin: 0;
}

.landsraad-directory {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

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

.landsraad-region {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.landsraad-region h4 {
  margin: 0 0 10px;
  color: var(--amber-2);
  font-size: 1rem;
}

.house-rep {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.house-rep:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.house-rep__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: #050706;
}

.house-rep strong,
.house-rep span {
  display: block;
}

.house-rep strong {
  color: var(--text);
  font-size: 0.95rem;
}

.house-rep span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.house-rep p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.resource-intro {
  padding: 14px 16px;
  border: 1px solid rgba(224, 169, 83, 0.24);
  border-radius: 4px;
  background: rgba(217, 154, 62, 0.08);
}

.resource-intro p {
  margin: 0;
  color: var(--muted);
}

.hagga-resource-map {
  margin-top: 14px;
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 45%, rgba(217, 154, 62, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(217, 154, 62, 0.08), rgba(184, 95, 47, 0.07)),
    rgba(255, 241, 220, 0.035);
}

.map-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.map-title h3 {
  margin: 0;
  font-size: 1.45rem;
}

.hagga-map-grid {
  min-height: 0;
  aspect-ratio: 1 / 1;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  margin-bottom: 78px;
  border: 3px solid rgba(245, 195, 116, 0.72);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

.hagga-map-grid--image {
  aspect-ratio: auto;
  max-width: 900px;
  overflow: hidden;
  margin-bottom: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hagga-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.testing-atlas {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(224, 169, 83, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(217, 154, 62, 0.08), rgba(102, 191, 181, 0.045)),
    rgba(8, 7, 6, 0.34);
}

.testing-atlas details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.testing-atlas details + details {
  margin-top: 10px;
}

.testing-atlas summary {
  padding: 14px 16px;
  color: var(--amber-2);
  cursor: pointer;
  font-weight: 950;
}

.testing-station-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  padding: 0 12px 12px;
}

.testing-station-panel > img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid rgba(102, 191, 181, 0.28);
  border-radius: 4px;
  background: #090706;
}

.testing-station-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.testing-station-list--compact {
  grid-template-columns: 1fr;
}

.testing-station-list article {
  padding: 10px;
  border: 1px solid rgba(224, 169, 83, 0.15);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.16);
}

.testing-station-list h4 {
  margin: 0 0 6px;
  color: var(--amber-2);
}

.testing-station-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.36;
}

.method-live-panel {
  margin-top: 18px;
  position: relative;
  padding: 18px;
  border: 1px solid rgba(224, 169, 83, 0.34);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(217, 154, 62, 0.12), rgba(184, 95, 47, 0.08)),
    rgba(8, 7, 6, 0.5);
}

.method-live-panel__note {
  margin: 0 0 14px;
  max-width: 920px;
  color: var(--muted);
  line-height: 1.55;
}

.method-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(224, 169, 83, 0.35);
  border-radius: 3px;
  color: var(--amber-2);
  background: rgba(217, 154, 62, 0.08);
  font-weight: 800;
  white-space: nowrap;
}

.method-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.method-window-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(224, 169, 83, 0.26);
  border-radius: 4px;
  background:
    linear-gradient(140deg, rgba(217, 154, 62, 0.13), rgba(0, 0, 0, 0.18)),
    rgba(255, 241, 220, 0.035);
}

.method-window-card--loot {
  border-color: rgba(184, 95, 47, 0.55);
  background:
    linear-gradient(140deg, rgba(184, 95, 47, 0.16), rgba(0, 0, 0, 0.2)),
    rgba(255, 241, 220, 0.035);
}

.method-window-card h4 {
  margin: 2px 0 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  color: var(--text);
}

.method-window-card p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

.method-live-panel--rendered {
  overflow: hidden;
}

.method-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.method-live-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(224, 169, 83, 0.25);
  border-radius: 3px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  font-weight: 800;
}

.method-window {
  border: 1px solid rgba(224, 169, 83, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(224, 169, 83, 0.05), transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(224, 169, 83, 0.025) 43px, transparent 44px),
    rgba(8, 7, 6, 0.36);
  overflow: hidden;
}

.method-window + .method-window {
  margin-top: 14px;
}

.method-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(224, 169, 83, 0.16);
  background: rgba(18, 13, 8, 0.72);
}

.method-window__bar h4 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.method-window--map {
  overflow-x: hidden;
}

.method-map {
  position: relative;
  width: min(860px, calc(100vh - 230px), 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 18px;
  background: #120d08;
}

.method-map-zoom {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 8;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(239, 198, 133, 0.7);
  border-radius: 3px;
  color: #160d05;
  background: linear-gradient(180deg, #f2bd61, #d48632);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.method-map-zoom:hover,
.method-map-zoom:focus-visible {
  outline: 2px solid rgba(255, 241, 220, 0.65);
  outline-offset: 2px;
}

.method-map-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 22px;
  border: 2px solid #070605;
  background: #25180f;
}

.method-map-stage::before {
  content: "";
  position: absolute;
  inset: 22px;
  background-image: var(--method-map-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.method-map-grid {
  content: "";
  position: absolute;
  inset: 22px;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.76) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.76) 2px, transparent 2px);
  background-size: calc(100% / 9) calc(100% / 9);
  border: 2px solid rgba(0, 0, 0, 0.82);
  pointer-events: none;
  z-index: 1;
}

.method-axis {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f1ed;
  font-weight: 950;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%);
}

.method-axis--top {
  top: 11px;
}

.method-axis--bottom {
  bottom: 11px;
}

.method-axis--left {
  left: 11px;
  transform: translateY(-50%);
}

.method-axis--right {
  right: 11px;
  transform: translateY(-50%);
}

.method-map-pins {
  position: absolute;
  inset: 22px;
  z-index: 4;
}

.method-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
  cursor: default;
  z-index: 2;
}

.method-map-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.78));
}

.method-map-pin span {
  display: none;
  line-height: 1;
}

.method-map-pin strong,
.method-map-pin small {
  display: none;
}

.method-map-pin:hover,
.method-map-pin:focus-visible {
  z-index: 5;
  width: max-content;
  height: auto;
  min-width: 170px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text);
  background: rgba(12, 9, 6, 0.96);
  border: 1px solid rgba(224, 169, 83, 0.9);
}

.method-map-pin:hover img,
.method-map-pin:focus-visible img {
  width: 36px;
  height: 36px;
  margin: 0 auto 4px;
}

.method-map-pin:hover span,
.method-map-pin:focus-visible span {
  display: block;
  color: var(--amber-2);
}

.method-map-pin:hover strong,
.method-map-pin:hover small,
.method-map-pin:focus-visible strong,
.method-map-pin:focus-visible small {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.method-map-pin:hover small,
.method-map-pin:focus-visible small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.method-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 0 8px 2px;
}

.method-map-filters span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid rgba(242, 151, 37, 0.86);
  border-radius: 3px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  font-weight: 900;
}

.method-map-filters img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.method-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.24);
}

.method-toggle button {
  border: 0;
  border-radius: 2px;
  padding: 8px 13px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.method-toggle button.is-active {
  color: #130d07;
  background: linear-gradient(180deg, #e0a953, #9e552b);
}

.method-loot-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.method-loot-toolbar input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  font-weight: 800;
}

.method-loot-toolbar span {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.method-loot-list {
  max-height: 680px;
  overflow: auto;
  padding: 14px 16px 16px;
}

.method-loot-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(217, 154, 62, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.method-loot-section + .method-loot-section {
  margin-top: 10px;
}

.method-loot-section__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.method-loot-section__head span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.method-loot-section__head h5 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.method-loot-section__head small {
  color: var(--muted);
  font-weight: 800;
}

.method-loot-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.method-loot-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px 42px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.method-loot-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.method-loot-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.method-loot-tier {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 5px 0 0;
  color: #07100e;
  background: #9ff28a;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.method-loot-tier--s {
  background: #ff7676;
}

.method-loot-tier--a {
  background: #ffc35b;
}

.method-loot-tier--b {
  background: #e7ff55;
}

.method-loot-tier--c {
  background: #65f078;
}

.method-loot-chance {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
}

.method-loot-text strong,
.method-loot-text span,
.method-loot-text small {
  display: block;
}

.method-loot-text strong {
  color: var(--text);
  line-height: 1.25;
}

.method-loot-text span {
  color: var(--amber-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.method-loot-text small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.3;
}

.sourcegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.offline-note {
  max-width: 740px;
  margin: -8px 0 18px;
  color: var(--muted);
}

.sourceitem {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--amber-2);
  background:
    linear-gradient(90deg, rgba(217, 154, 62, 0.12), transparent 55%),
    rgba(217, 154, 62, 0.08);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease;
}

.empty-state {
  width: min(var(--content), calc(100% - 56px));
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px dashed rgba(242, 189, 97, 0.45);
  border-radius: 4px;
  color: var(--amber-2);
  background: rgba(242, 189, 97, 0.08);
  font-weight: 900;
}

.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(13, 10, 7, 0.72);
  color: var(--amber);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.settings-modal__panel {
  width: min(560px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(39, 27, 16, 0.96), rgba(18, 13, 8, 0.98));
  box-shadow: var(--shadow);
}

.settings-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-modal__bar h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.settings-modal__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 241, 220, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.settings-card {
  padding: 16px;
  border: 1px solid rgba(224, 169, 83, 0.18);
  border-radius: 4px;
  background: rgba(13, 10, 7, 0.52);
}

.settings-card p {
  color: var(--muted);
}

.settings-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--amber-2);
  font-weight: 800;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 58px 26px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 154, 62, 0.14), transparent 40%),
    rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
}

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 112;
  display: grid;
  place-items: center;
  padding: 70px 18px 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 154, 62, 0.14), transparent 40%),
    rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.map-lightbox__stage {
  width: min(96vw, 980px);
  max-height: calc(100vh - 104px);
  overflow: hidden;
  border: 1px solid rgba(239, 198, 133, 0.42);
  border-radius: 4px;
  background: #120d08;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.map-lightbox__tools {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 42px 1fr 42px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(239, 198, 133, 0.28);
  background: rgba(18, 13, 8, 0.96);
}

.map-lightbox__tools strong {
  color: var(--amber-2);
  text-align: center;
  font-weight: 950;
}

.map-lightbox__tools button {
  min-height: 38px;
  border: 1px solid rgba(239, 198, 133, 0.5);
  border-radius: 3px;
  color: var(--text);
  background: rgba(255, 241, 220, 0.07);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.map-lightbox__tools button:hover,
.map-lightbox__tools button:focus-visible {
  border-color: var(--amber);
  background: rgba(217, 154, 62, 0.22);
}

.map-lightbox__scroller {
  max-height: calc(100vh - 163px);
  overflow: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

.map-lightbox__stage .method-map {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: visible;
}

.map-lightbox__stage .method-map-stage {
  box-sizing: border-box;
  max-width: none;
  flex: 0 0 auto;
}

.image-lightbox__frame {
  width: min(1180px, 96vw);
  margin: 0;
}

.image-lightbox__frame img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(239, 198, 133, 0.42);
  border-radius: 4px;
  background: #080706;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.image-lightbox__frame figcaption {
  margin-top: 10px;
  color: var(--amber-2);
  text-align: center;
  font-weight: 850;
}

.image-lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(239, 198, 133, 0.34);
  border-radius: 4px;
  background: rgba(17, 12, 7, 0.9);
  color: var(--text);
  cursor: pointer;
  font-size: 1.85rem;
  line-height: 1;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  border-color: var(--amber);
  background: rgba(217, 154, 62, 0.22);
}

footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .dune-decor {
    opacity: 0.34;
  }

  .sandworm {
    opacity: 0.24;
  }

  .hero::before {
    width: min(48vw, 330px);
  }

  .overview,
  .statuspanel,
  .grid,
  .factions,
  .contact-grid,
  .landsraad-region-grid,
  .sourcegrid {
    grid-template-columns: 1fr 1fr;
  }

  .toolband__inner {
    grid-template-columns: 1fr;
  }

  .method-window-grid {
    grid-template-columns: 1fr;
  }

  .method-window__bar,
  .method-loot-toolbar,
  .method-loot-section__head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .method-loot-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landsraad-brief,
  .landsraad-mission-grid,
  .testing-station-panel,
  .testing-station-list {
    grid-template-columns: 1fr;
  }

  .trial-grid,
  .trial-atlas__head {
    grid-template-columns: 1fr;
  }

  .trial-card {
    grid-template-columns: minmax(155px, 0.6fr) minmax(220px, 1.4fr);
  }

  .trial-card--final {
    grid-template-columns: minmax(260px, 0.62fr) minmax(300px, 1.38fr);
  }

  .trial-card--final {
    grid-column: auto;
  }

  .hagga-map-grid {
    min-height: 0;
  }

}

@media (max-width: 680px) {
  .dune-decor,
  .sandworm,
  .hero__ornament,
  .hero__sigils {
    display: none;
  }

  .hero::before {
    opacity: 0.28;
  }

  .hero {
    min-height: 50vh;
  }

  .topbar {
    top: 52px;
    width: calc(100% - 20px);
    justify-content: space-between;
    overflow-x: auto;
  }

  .topbar a {
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .reset-timer {
    top: 104px;
    right: 10px;
    min-height: 42px;
    padding: 7px 8px 7px 11px;
  }

  .settings-button {
    top: 0;
    right: 122px;
    width: 46px;
    height: 44px;
    font-size: 0.98rem;
  }

  .reset-timer strong {
    min-width: 96px;
    font-size: 0.9rem;
  }

  .reset-timer select {
    height: 28px;
    font-size: 0.78rem;
  }

  .hero__content {
    width: calc(100% - 32px);
    margin: 72px 16px 30px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .section,
  .toolband__inner,
  .resultline,
  footer {
    width: min(100% - 32px, var(--content));
  }

  .overview,
  .statuspanel,
  .grid,
  .factions,
  .landsraad-brief,
  .landsraad-mission-grid,
  .testing-station-panel,
  .testing-station-list,
  .landsraad-region-grid,
  .sourcegrid {
    grid-template-columns: 1fr;
  }

  .section__head {
    align-items: start;
    flex-direction: column;
  }

  .questguide__head {
    grid-template-columns: 1fr;
  }

  .trial-grid,
  .trial-card,
  .trial-card--final {
    grid-template-columns: 1fr;
  }

  .trial-card img {
    max-height: 180px;
    object-fit: cover;
  }

  .trial-card {
    padding: 9px;
  }

  .map-title {
    align-items: start;
    flex-direction: column;
  }

  .hagga-map-grid {
    min-height: 0;
    overflow: hidden;
  }

  .quest-columns {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .contact-card,
  .mentor-grid,
  .mentor-locations,
  .mentor-locations--three {
    grid-template-columns: 1fr;
  }

  .contact-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card--wide {
    grid-column: auto;
  }

  .quest-solutions summary {
    align-items: start;
    flex-direction: column;
  }

  .trial-atlas {
    margin-right: 10px;
    margin-left: 10px;
    padding: 12px;
  }

  .clear-button {
    width: 100%;
  }

  .faction dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

