:root {
  --night: #0c0a12;
  --night-2: #141020;
  --panel-solid: #120e1c;
  --panel-glass: rgba(14, 11, 22, 0.85);
  --panel-glass-deep: rgba(12, 10, 19, 0.89);
  --nav-glass: rgba(12, 10, 18, 0.92);
  --ink: #efe6d8;
  --dim: #c2b69f;
  --ember: #ff8a3d;
  --gold: #f2c46d;
  --lich: #7be495;
  --nebula: #a77bff;
  --teal: #7be4d8;
  --line: rgba(242, 196, 109, 0.18);
  --line-soft: rgba(167, 123, 255, 0.22);
  --f-display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --f-data: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 18px; background: var(--night); scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  overflow-x: clip;
  min-height: 100svh;
}
code, pre { font-family: var(--f-data); font-size: 1rem; color: var(--gold); }
pre {
  background: rgba(8, 6, 14, 0.86);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0;
}
small { font-size: 1rem; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 12px; }

/* Fixed full-viewport campfire background stage */
.scene-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--night);
}
.scene-stage picture,
.scene-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
}
@media (max-aspect-ratio: 4/5) {
  .scene-stage img { object-position: 50% 100%; }
}
#camp-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scene-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 16, 0.74) 0%,
    rgba(10, 8, 16, 0.44) 34%,
    rgba(10, 8, 16, 0.06) 58%,
    rgba(10, 8, 16, 0.14) 100%
  );
}
body.inner-page .scene-scrim {
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 16, 0.76) 0%,
    rgba(10, 8, 16, 0.52) 45%,
    rgba(10, 8, 16, 0.36) 100%
  );
}

/* Aegolism celestial dashed ring + gentle teal motes */
.ring {
  position: absolute;
  right: -110px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px dashed rgba(136, 200, 248, 0.20);
  box-shadow: 0 0 60px rgba(202, 238, 234, 0.05) inset;
  animation: turn 240s linear infinite;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  border: 1px dotted rgba(242, 196, 109, 0.16);
}
@keyframes turn { to { transform: rotate(360deg); } }

.motes { position: absolute; inset: 0; overflow: hidden; }
.mote {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(123, 228, 216, 0.55);
  box-shadow: 0 0 10px rgba(123, 228, 216, 0.65);
  animation: drift 26s ease-in-out infinite;
}
.mote:nth-child(1) { left: 16%; top: 72%; animation-duration: 28s; animation-delay: -4s; }
.mote:nth-child(2) { left: 34%; top: 64%; animation-duration: 32s; animation-delay: -11s; }
.mote:nth-child(3) { left: 66%; top: 58%; animation-duration: 24s; animation-delay: -7s; }
.mote:nth-child(4) { left: 82%; top: 68%; animation-duration: 30s; animation-delay: -16s; }
.mote:nth-child(5) { left: 52%; top: 46%; animation-duration: 34s; animation-delay: -19s; }
@keyframes drift {
  0%   { transform: translate(0, 0); opacity: 0.15; }
  45%  { transform: translate(12px, -42px); opacity: 0.55; }
  100% { transform: translate(-8px, -84px); opacity: 0.12; }
}

/* Sticky Top Navigation */
.site-nav-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nav-glass);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-nav-bar {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand:hover { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-links a:hover,
.nav-drop-btn:hover {
  color: var(--gold);
  background: rgba(242, 196, 109, 0.08);
}
.nav-links a[aria-current="page"] {
  color: var(--gold);
  border-color: rgba(242, 196, 109, 0.42);
  background: rgba(242, 196, 109, 0.12);
}

/* External "Play and help" dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  background: #141020;
  border: 1px solid rgba(242, 196, 109, 0.34);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(4, 3, 8, 0.78);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 40;
}
.nav-drop-menu.is-open { display: grid; gap: 0.15rem; }
.nav-drop-menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
}
.nav-drop-menu a:hover {
  background: rgba(255, 138, 61, 0.14);
  color: var(--gold);
}

/* Mobile menu button & drawer */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-data);
  font-size: 1rem;
  color: var(--gold);
  background: rgba(242, 196, 109, 0.08);
  border: 1px solid rgba(242, 196, 109, 0.35);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #110d1b;
  padding: 0.85rem max(16px, env(safe-area-inset-right, 0px)) 1.15rem max(16px, env(safe-area-inset-left, 0px));
}
.mobile-drawer.is-open { display: grid; gap: 0.35rem; }
.mobile-drawer a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
}
.mobile-drawer a[aria-current="page"] {
  color: var(--gold);
  background: rgba(242, 196, 109, 0.12);
  border: 1px solid rgba(242, 196, 109, 0.36);
}
.mobile-drawer .drawer-group {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-data);
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Page foreground */
.page-shell { position: relative; z-index: 1; }
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
.eyebrow {
  font-family: var(--f-data);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Front page hero */
.hero {
  position: relative;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.hero-vista {
  min-height: min(86svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: clamp(16rem, 42svh, 28rem);
}
@media (max-width: 600px) {
  .hero { padding-top: 1.4rem; }
  .hero-vista {
    min-height: 90svh;
    padding-bottom: clamp(16rem, 44svh, 22rem);
  }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}
.hero-copy { display: grid; gap: 0.9rem; max-width: 66ch; }
.hero h1,
.page-banner h1 {
  font-size: clamp(2.5rem, 6.8vw, 4.8rem);
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(10, 8, 16, 0.88), 0 0 28px rgba(255, 138, 61, 0.28);
  animation: glow 9s ease-in-out infinite alternate;
}
.hero h1 span,
.page-banner h1 span { color: var(--ember); }
@keyframes glow {
  from { text-shadow: 0 2px 24px rgba(10, 8, 16, 0.88), 0 0 20px rgba(255, 138, 61, 0.24); }
  to   { text-shadow: 0 2px 24px rgba(10, 8, 16, 0.88), 0 0 34px rgba(253, 251, 248, 0.28), 0 0 64px rgba(255, 138, 61, 0.20); }
}
.hero .lede,
.page-banner .lede {
  font-size: 1.12rem;
  max-width: 64ch;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(10, 8, 16, 0.94);
}

/* Inner page header band & breadcrumb */
.page-banner {
  padding-top: 2.25rem;
  padding-bottom: 1.25rem;
}
.page-banner .wrap { display: grid; gap: 0.7rem; }
.crumb {
  font-family: var(--f-data);
  font-size: 1rem;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* Translucent night panels with solid fallback */
.panel {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(4, 3, 8, 0.56), 0 0 28px rgba(255, 138, 61, 0.07), inset 0 1px 0 rgba(242, 196, 109, 0.12);
  padding: clamp(1.25rem, 3vw, 2rem);
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .panel {
    background: var(--panel-glass);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
.stack { display: grid; gap: 1.1rem; }

.hero-dock { display: grid; gap: 1.25rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1rem;
}
.stat { border-top: 1px solid var(--line); padding-top: 0.65rem; }
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: 2.5rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat span { color: var(--dim); font-size: 1rem; }

.howto {
  border: 1px solid rgba(255, 138, 61, 0.75);
  background: rgba(255, 138, 61, 0.11);
  border-radius: 4px;
  padding: 0.95rem 1.15rem;
  display: grid;
  gap: 0.35rem;
  max-width: 72ch;
}
.howto strong { color: var(--gold); }

.notice {
  border-left: 3px solid var(--gold);
  background: rgba(242, 196, 109, 0.08);
  padding: 0.85rem 1.05rem;
  border-radius: 0 4px 4px 0;
  display: grid;
  gap: 0.35rem;
}
.notice.warn { border-left-color: var(--ember); background: rgba(255, 138, 61, 0.10); }

section { padding-block: 1.6rem; }
.reveal { transition: transform 0.6s ease-out, opacity 0.6s ease-out; }
.reveal.is-resting { opacity: 0.94; transform: translateY(10px); }
.reveal.is-in { opacity: 1; transform: none; }

.sec-head { display: grid; gap: 0.5rem; margin-bottom: 1.4rem; max-width: 72ch; }
.sec-head h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.sec-head p { color: var(--dim); }

/* Status pills */
.pill {
  display: inline-block;
  font-family: var(--f-data);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  white-space: nowrap;
  justify-self: start;
}
.pill.test { color: var(--lich); }
.pill.shop { color: var(--gold); }
.pill.far  { color: var(--nebula); }
.pill.ext  { color: var(--teal); }

/* Missions board & Explore cards */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.mission {
  background: var(--panel-solid);
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.38rem;
  align-content: start;
  min-width: 0;
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .mission { background: var(--panel-glass-deep); }
}
.mission h3 { font-size: 1.45rem; color: var(--ink); }
.mission .where { font-family: var(--f-data); font-size: 1rem; color: var(--dim); letter-spacing: 0.03em; }
.mission p { font-size: 1rem; color: var(--ink); }
.mission.feature {
  grid-column: span 2;
  background: linear-gradient(160deg, rgba(123, 228, 149, 0.12), transparent 60%), var(--panel-solid);
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .mission.feature {
    background: linear-gradient(160deg, rgba(123, 228, 149, 0.13), transparent 60%), var(--panel-glass-deep);
  }
}
.mission.feature h3 { color: var(--lich); font-size: 1.8rem; }
@media (max-width: 600px) { .mission.feature { grid-column: auto; } }
.board-foot { margin-top: 1.1rem; color: var(--dim); font-size: 1rem; }
.board-foot strong { color: var(--ink); }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}
.card-link {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel-glass-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-link:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  color: var(--ink);
}
.card-link h3 { font-size: 1.5rem; color: var(--gold); }
.card-link p { color: var(--dim); font-size: 1rem; }
.card-link.ext-card { border-color: rgba(123, 228, 216, 0.30); }
.card-link.ext-card h3 { color: var(--teal); }

/* Jaggedpine campfire band */
.fire-panel {
  border-color: rgba(255, 138, 61, 0.34);
  box-shadow: 0 14px 44px rgba(4, 3, 8, 0.60), 0 0 42px rgba(255, 138, 61, 0.14), inset 0 1px 0 rgba(255, 138, 61, 0.22);
}
.fire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem 2rem;
}
.fire-grid div { display: grid; gap: 0.35rem; min-width: 0; align-content: start; }
.fire-grid h3 { font-size: 1.5rem; color: var(--ember); }
.fire-grid p { color: var(--ink); }
.quote {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--gold);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}
.quote small { display: block; font-family: var(--f-body); font-size: 1rem; color: var(--dim); margin-top: 0.4rem; }

/* Two-up & lists */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}
.duo > div { display: grid; gap: 0.8rem; align-content: start; min-width: 0; }
.big-num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 5rem);
  color: var(--gold);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}
.duo h3 { font-size: 1.7rem; }

.list { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.list li { padding-left: 1.15rem; position: relative; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--ember);
  transform: rotate(45deg);
}
.steps { display: grid; gap: 0.6rem; padding-left: 1.4rem; margin: 0; }
.steps li::marker { color: var(--gold); font-family: var(--f-data); }

/* Responsive tables that stack cleanly on phone (no sideways scroll) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.data-table th {
  font-family: var(--f-data);
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid rgba(242, 196, 109, 0.34);
}
@media (max-width: 680px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(10, 8, 16, 0.55);
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.75rem;
  }
  .data-table td {
    border-bottom: 0;
    padding: 0.3rem 0;
  }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--f-data);
    font-size: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
  }
}

/* The road */
.road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.stage {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-solid);
  padding: 1.2rem 1.25rem 1.3rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  min-width: 0;
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .stage { background: var(--panel-glass-deep); }
}
.stage header { display: grid; gap: 0.35rem; }
.stage h3 { font-size: 1.9rem; }
.stage .when { font-family: var(--f-data); font-size: 1rem; color: var(--dim); letter-spacing: 0.04em; }
.stage.now { border-top: 3px solid var(--lich); }
.stage.next { border-top: 3px solid var(--gold); }
.stage.far { border-top: 3px solid var(--nebula); }
.stage.now h3 { color: var(--lich); }
.stage.next h3 { color: var(--gold); }
.stage.far h3 { color: var(--nebula); }
.stage.now .list li::before { background: var(--lich); }
.stage.next .list li::before { background: var(--gold); }
.stage.far .list li::before { background: var(--nebula); }
.honest { margin-top: 1.5rem; color: var(--dim); font-size: 1rem; max-width: 75ch; }

/* Footer */
footer {
  padding-block: 2rem 4.5rem;
  color: var(--dim);
  font-size: 1rem;
}
footer .panel { display: grid; gap: 1rem; }
footer strong {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 500;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Motion toggle button (18px minimum; prominent when OS reduced-motion is on) */
.fire-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 25;
  font-family: var(--f-data);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--gold);
  background: rgba(14, 11, 22, 0.90);
  border: 1px solid rgba(242, 196, 109, 0.45);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(4, 3, 8, 0.65);
}
.fire-toggle.is-prominent {
  border-color: var(--ember);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.35), 0 8px 24px rgba(4, 3, 8, 0.75);
}
.fire-toggle:hover { border-color: var(--ember); color: var(--ink); }

/* Motion paused state (toggled by button and remembered in localStorage) */
html.motion-paused .ring,
html.motion-paused .mote,
html.motion-paused .hero h1,
html.motion-paused .page-banner h1 {
  animation: none !important;
}
html.motion-paused .reveal,
html.motion-paused .reveal.is-resting {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Tentative-information notice at the top of the front page (2026-11-22) */
.flux-notice {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(242, 196, 109, 0.65);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: rgba(16, 12, 22, 0.88);
  color: #fff6e0;
  font-size: 1.15rem;
  line-height: 1.5;
}
.flux-notice strong { color: var(--gold); }

/* Mission detail pages and mission board links (additions only) */
.mission h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(242, 196, 109, 0.45);
  text-underline-offset: 0.18em;
}
.mission h3 a:hover,
.mission h3 a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--ember);
}
.mission.feature h3 a:hover,
.mission.feature h3 a:focus-visible {
  color: var(--lich);
  text-decoration-color: var(--lich);
}
.banner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.35rem;
}
.foe-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.9rem;
}
.foe-card {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.95rem 1.05rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .foe-card { background: var(--panel-glass-deep); }
}
.foe-card h3 {
  font-size: 1.35rem;
  color: var(--gold);
}
.foe-card p {
  font-size: 1rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.workshop-box {
  border: 1px solid rgba(242, 196, 109, 0.55);
  border-left: 4px solid var(--gold);
  background: rgba(242, 196, 109, 0.08);
  border-radius: 0 5px 5px 0;
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.workshop-box h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  color: var(--gold);
}
.mission-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.mission-pager a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-glass-deep);
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
}
.mission-pager a:hover,
.mission-pager a:focus-visible {
  border-color: var(--ember);
  color: var(--gold);
}
.mission-pager .pager-back {
  border-color: rgba(242, 196, 109, 0.45);
  color: var(--gold);
}
