* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f5cd70;
  outline-offset: 3px;
}
img {
  max-width: 100%;
}
.skip {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
.bar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 21, 17, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(18px, 4vw, 70px);
  gap: 18px;
  backdrop-filter: blur(16px);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.identity img {
  width: 53px;
  height: 53px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #907a47;
}
.identity span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.identity b {
  font-size: 19px;
  color: #eddbb6;
  white-space: nowrap;
}
.identity small {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--gold);
  margin-top: 5px;
  text-transform: uppercase;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 35px);
  font-size: 13px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.bar nav a {
  text-decoration: none;
  white-space: nowrap;
}
.bar nav a:hover {
  color: var(--gold);
}
.nav-special {
  border: 1px solid var(--gold);
  padding: 10px 15px;
  color: var(--gold);
}
.intro {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0, rgba(113, 81, 39, 0.2), transparent 60%),
    linear-gradient(180deg, #172b20 0%, #101b15 100%);
  padding: 72px 18px 51px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font:
    600 10px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}
.intro h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.intro h1 {
  font-size: clamp(42px, 6.3vw, 82px);
  margin: 18px auto 16px;
}
.intro h1 em,
h2 em {
  color: var(--gold);
  font-weight: 400;
}
.intro > p {
  max-width: 640px;
  margin: auto;
  color: #c9c5b4;
  font-size: clamp(16px, 1.8vw, 20px);
}
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 27px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 12px 20px;
  font:
    700 12px/1.4 Arial,
    sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--gold);
  color: #152017;
}
.secondary {
  background: transparent;
  color: var(--gold);
}
.intro-note {
  font:
    10px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #858d7e;
  margin-top: 23px;
}
.scene-section {
  padding: 48px clamp(12px, 3vw, 55px) 57px;
  background: #0b1510;
}
.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto 10px;
}
.scene-header h2 {
  font-size: clamp(28px, 3vw, 43px);
  margin: 9px 0 0;
}
.counter {
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: #17261c;
  font:
    14px Arial,
    sans-serif;
}
.counter #found-number {
  color: var(--gold);
  font-weight: bold;
  font-size: 25px;
}
.muted {
  color: #a7ab9f;
  font-size: 12px;
}
.scene-help {
  font:
    13px/1.5 Arial,
    sans-serif;
  color: #b5bbaf;
  max-width: 1500px;
  margin: 0 auto 18px;
}
.scene-scroll {
  max-width: 1500px;
  margin: auto;
  overflow: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #695334;
  box-shadow: 0 24px 80px #000b;
  border-radius: 4px;
  scrollbar-color: #ad8952 #102116;
}
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1672/941;
  isolation: isolate;
  overflow: hidden;
}
.scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px #090e0a;
  z-index: 1;
}
.pin {
  position: absolute;
  z-index: 5;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
}
.dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #eed39b;
  border-radius: 50%;
  background: rgba(23, 39, 30, 0.8);
  box-shadow:
    0 0 0 6px rgba(209, 171, 101, 0.15),
    0 0 19px #e6bb65aa;
  font-size: 15px;
  animation: pin-glow 4.5s ease-in-out infinite;
  animation-delay: var(--d);
}
.pin:hover .dot,
.pin:focus-visible .dot {
  background: #e5c181;
  color: #162218;
  transform: scale(1.13);
}
.pin-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #f8eaca;
  background: rgba(9, 20, 14, 0.91);
  border: 1px solid #9a7946;
  padding: 6px 9px;
  border-radius: 3px;
  font:
    600 11px Arial,
    sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.pin:hover .pin-label,
.pin:focus-visible .pin-label,
.hint-pin .pin-label {
  opacity: 1;
}
.hint-pin .pin-label {
  animation: label-breathe 8s linear infinite;
}
.secret-pin .dot {
  width: 22px;
  height: 22px;
  background: #291e0fc7;
  color: #efc371;
  box-shadow: 0 0 0 3px #d0a25c30;
  font-size: 17px;
}
.steam {
  position: absolute;
  z-index: 3;
  left: 15%;
  top: 19%;
  font-size: 75px;
  color: #f2e8cca8;
  filter: blur(3px);
  pointer-events: none;
  animation: rise 5s ease-in-out infinite;
}
.steam-b {
  left: 36%;
  top: 39%;
  font-size: 42px;
  animation-delay: 1.2s;
}
.firelight {
  position: absolute;
  z-index: 2;
  left: 44%;
  top: 35%;
  width: 18%;
  height: 32%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fca64626, transparent 65%);
  pointer-events: none;
  animation: fire 3s ease-in-out infinite;
}
.under-scene {
  max-width: 1500px;
  margin: 13px auto 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #aba890;
  font:
    12px Arial,
    sans-serif;
}
.mute {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 7px 10px;
  font:
    12px Arial,
    sans-serif;
  white-space: nowrap;
}
.quick {
  max-width: 1500px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.quick button {
  background: #1b2b20;
  border: 1px solid var(--line);
  color: #e5dac0;
  padding: 9px 12px;
  font:
    13px Arial,
    sans-serif;
  border-radius: 2px;
}
.quick button:hover {
  border-color: var(--gold);
}
.chronicles {
  padding: 82px max(20px, calc((100vw - 1200px) / 2));
  background: linear-gradient(135deg, #193025, #13221b);
}
.section-heading {
  max-width: 750px;
  margin-bottom: 32px;
}
.section-heading h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin: 11px 0;
}
.section-heading p {
  color: #c3c4b8;
  font-size: 17px;
}
.history-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 35px;
  align-items: stretch;
}
.dwaelf-card {
  border: 1px solid var(--line);
  background: #0d1912;
}
.dwaelf-card > img {
  width: 100%;
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.portrait-foot {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portrait-foot b {
  color: #e8c994;
}
.portrait-foot small {
  color: #bdbbab;
  font:
    12px Arial,
    sans-serif;
}
.history-main {
  background: #0c1a14;
  border: 1px solid var(--line);
  padding: 29px;
  display: flex;
  flex-direction: column;
}
.yearbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.year {
  background: #22372b;
  color: #bbb7a7;
  border: 1px solid #445342;
  padding: 9px 14px;
  font:
    600 13px Arial,
    sans-serif;
}
.year.current {
  background: var(--gold);
  color: #18241a;
}
.year-article {
  flex: 1;
  padding-top: 22px;
}
.year-article h3 {
  font-size: 30px;
  color: #edddba;
  margin: 9px 0;
}
.year-article p {
  font-size: 16px;
  max-width: 670px;
  color: #ccc8ba;
}
.text-link {
  color: var(--gold);
  font:
    13px Arial,
    sans-serif;
}
.fine {
  font:
    12px/1.6 Arial,
    sans-serif !important;
  color: #aaa99e !important;
  margin-top: 20px;
}
.fellowship {
  background: #e9deca;
  color: #22332a;
  text-align: center;
  padding: 80px 20px;
}
.fellowship .shell {
  max-width: 850px;
  margin: auto;
}
.fellowship .eyebrow {
  color: #916b37;
}
.fellowship h2 {
  font-size: clamp(35px, 4.5vw, 57px);
  margin: 10px 0 22px;
}
.fellowship h2 em {
  color: #926e3f;
}
.fellowship p {
  font-size: 18px;
}
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 27px auto;
}
.values span {
  border: 1px solid #c1ae8d;
  padding: 8px 12px;
  font:
    12px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fellowship .motto {
  font-style: italic;
  color: #7e592d;
  margin-top: 24px;
}
.workshop {
  display: grid;
  grid-template-columns: minmax(250px, 40%) 1fr;
  background: #111e17;
  min-height: 425px;
}
.workshop-visual {
  overflow: hidden;
}
.workshop-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.workshop-text {
  padding: 70px clamp(30px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.workshop-text h2 {
  font-size: clamp(33px, 4vw, 54px);
  max-width: 620px;
  margin: 14px 0;
}
.workshop-text p {
  max-width: 600px;
  color: #c2c3b4;
  font-size: 17px;
}
.workshop-text .fine {
  margin-top: 16px;
}
.join {
  background: #eadcc1;
  color: #25382b;
  display: grid;
  grid-template-columns: 270px minmax(0, 700px);
  justify-content: center;
  align-items: center;
  gap: 55px;
  padding: 70px 20px;
}
.join img {
  width: 240px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 9px #dbc6a0;
}
.join .eyebrow {
  color: #8e682a;
}
.join h2 {
  font-size: clamp(32px, 4vw, 49px);
  margin: 10px 0;
}
.join h2 em {
  color: #937140;
}
.join p {
  font-size: 16px;
}
.join .btn {
  margin-top: 15px;
}
footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-direction: column;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
footer strong {
  color: var(--gold);
}
footer small {
  color: #95998b;
  max-width: 800px;
  font:
    11px/1.6 Arial,
    sans-serif;
}
.overlay[hidden] {
  display: none !important;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: #030906d9;
  backdrop-filter: blur(5px);
}
.dialog {
  position: relative;
  max-width: 550px;
  width: 100%;
  max-height: min(90vh, 780px);
  overflow: auto;
  background: linear-gradient(160deg, #25382b, #101e16);
  border: 1px solid #bca06e;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 25px 100px #000;
  text-align: center;
}
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #ebd6b1;
  background: transparent;
  border: 0;
  font:
    35px Arial,
    sans-serif;
}
.dialog-icon {
  font-size: 44px;
  margin-bottom: 10px;
}
.dialog h2 {
  font-size: clamp(29px, 5vw, 42px);
  margin: 14px 0;
}
.dialog p {
  color: #c7caba;
  font-size: 16px;
}
.dialog blockquote {
  margin: 23px 0;
  padding: 18px 14px;
  border-block: 1px solid #917949;
  color: #f5dc9c;
  font-size: 20px;
  font-style: italic;
}
.dialog-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.dialog-buttons button[hidden] {
  display: none;
}
.dialog-foot {
  display: block;
  color: #a6ac9c;
  margin-top: 20px;
  font:
    11px Arial,
    sans-serif;
}
@keyframes pin-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 5px #cca56630,
      0 0 12px #cca56677;
  }
  50% {
    box-shadow:
      0 0 0 9px #cca56613,
      0 0 24px #e9bd7a9c;
  }
}
@keyframes rise {
  0%,
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
  40% {
    opacity: 0.42;
  }
  85% {
    transform: translateY(-29px);
    opacity: 0;
  }
}
@keyframes fire {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}
@keyframes label-breathe {
  0%,
  12%,
  33%,
  100% {
    opacity: 0;
  }
  16%,
  29% {
    opacity: 1;
  }
}
@media (max-width: 850px) {
  .bar {
    padding: 7px 14px;
  }
  .identity b {
    font-size: 15px;
  }
  .identity img {
    width: 43px;
    height: 43px;
  }
  .bar nav {
    gap: 12px;
    font-size: 11px;
  }
  .history-grid {
    grid-template-columns: 205px 1fr;
    gap: 16px;
  }
  .chronicles {
    padding: 55px 20px;
  }
  .history-main {
    padding: 20px;
  }
  .join {
    gap: 20px;
    grid-template-columns: 180px 1fr;
  }
  .join img {
    width: 170px;
  }
}
@media (max-width: 560px) {
  .bar {
    height: 65px;
  }
  .identity b {
    font-size: 13px;
  }
  .identity small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .identity img {
    width: 39px;
    height: 39px;
  }
  .nav-special {
    padding: 8px 9px;
  }
  .intro {
    padding: 48px 18px 40px;
  }
  .intro h1 {
    font-size: 43px;
  }
  .intro > p {
    font-size: 16px;
  }
  .scene-section {
    padding: 35px 9px 45px;
  }
  .scene-header {
    align-items: center;
  }
  .scene-header h2 {
    font-size: 25px;
  }
  .counter {
    padding: 7px;
    font-size: 11px;
  }
  .counter #found-number {
    font-size: 20px;
  }
  .pin .dot {
    width: 32px;
    height: 32px;
  }
  .secret-pin .dot {
    width: 22px;
    height: 22px;
  }
  .scene-help {
    padding: 0 7px;
  }
  .under-scene {
    padding: 0 7px;
  }
  .under-scene span {
    font-size: 11px;
  }
  .quick {
    padding: 0 4px;
  }
  .history-grid {
    grid-template-columns: 1fr;
  }
  .dwaelf-card {
    display: flex;
    align-items: center;
  }
  .dwaelf-card img {
    width: 115px;
    height: 115px;
  }
  .history-main {
    padding: 18px;
  }
  .year {
    padding: 8px 10px;
  }
  .workshop {
    grid-template-columns: 1fr;
  }
  .workshop-visual {
    height: 290px;
  }
  .workshop-text {
    padding: 33px 25px 45px;
  }
  .join {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }
  .join img {
    justify-self: center;
    width: 160px;
  }
  .fellowship {
    padding: 60px 20px;
  }
  .fellowship p {
    font-size: 16px;
  }
  .dialog blockquote {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .pin-label {
    animation: none;
  }
  .hint-pin .pin-label {
    opacity: 1;
  }
}

/* Living Hall v0.4 */
.pin.discovered .dot {
  border-color: #97c495;
  background: #1f4638;
  box-shadow:
    0 0 0 3px #8abe8745,
    0 0 10px #8abe8750;
  animation: none;
}
.pin.discovered::after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  background: #b8d3ad;
  color: #12301f;
  font: bold 10px Arial;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}
.secret-pin .dot {
  min-width: 27px;
  min-height: 27px;
  border: 1px solid #e8c279;
  box-shadow:
    0 0 0 4px #d0a25c38,
    0 0 15px #e0b06799;
  font-size: 19px;
}
.explore-on .secret-pin .dot {
  background: #e2bf7b;
  color: #17221a;
  box-shadow:
    0 0 0 7px #cda56245,
    0 0 22px #efcf83;
}
.explore-on .pin-label {
  opacity: 1;
}
.floating-journal {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 45;
  border: 1px solid #d6af72;
  color: #f7e5bf;
  background: #14291f;
  box-shadow: 0 5px 25px #000b;
  border-radius: 30px;
  font: 700 14px Arial;
  padding: 12px 15px;
  cursor: pointer;
}
.floating-journal span {
  margin-left: 7px;
}
.journal-overlay[hidden] {
  display: none !important;
}
.journal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 15px;
}
.journal-backdrop {
  position: absolute;
  inset: 0;
  background: #030906df;
}
.journal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(160deg, #203a2b, #101e16);
  border: 1px solid #caaa6d;
  padding: clamp(18px, 4vw, 36px);
  box-shadow: 0 20px 70px #000;
}
.journal-panel h2 {
  color: #f3dfb2;
  font-size: clamp(31px, 5vw, 46px);
  margin: 7px 0;
}
.journal-panel > p {
  color: #d4d0bd;
}
.journal-progress {
  background: #304537;
  border: 1px solid #8e794e;
  padding: 12px;
  color: #f1ce86;
  font: 700 13px Arial;
  margin: 14px 0;
}
.journal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.journal-list button {
  border: 1px solid #63563b;
  text-align: left;
  background: #182820;
  color: #aeb6a5;
  padding: 11px 9px;
  font: 12px/1.5 Arial;
  cursor: pointer;
}
.journal-list button.found {
  color: #e9dfc8;
  border-color: #789d75;
  background: #233b2c;
}
.journal-list button:hover {
  border-color: #d6ad70;
}
.journal-reset {
  background: transparent;
  color: #ceb88c;
  border: 1px solid #776348;
  padding: 8px 10px;
  margin-top: 16px;
  font: 11px Arial;
  cursor: pointer;
}
.journal-prize {
  border: 1px solid #caaa6d;
  padding: 15px;
  color: #f5dc9a !important;
}
.adventures-content,
.gatehouse {
  padding: 75px max(20px, calc((100vw - 1200px) / 2));
  background: #182b21;
}
.adventures-content h2,
.gatehouse h2 {
  font-size: clamp(36px, 4.4vw, 55px);
  margin: 14px 0;
}
.adventures-content > p,
.gatehouse > p {
  max-width: 750px;
  color: #d0ccbd;
}
.adventure-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 27px 0;
}
.adventure-cards article {
  border: 1px solid #74613f;
  background: #101d16;
  padding: 22px;
}
.adventure-cards article span {
  font-size: 29px;
}
.adventure-cards h3 {
  color: #e7ce99;
  font-size: 24px;
}
.adventure-cards p {
  color: #c6c6b8;
}
.gatehouse {
  background: #13241a;
}
.gate-panel {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid #8e774d;
  padding: 24px;
  max-width: 850px;
  background: #1b3325;
}
.gate-npc {
  font-size: 55px;
  line-height: 1;
}
.gate-chat {
  flex: 1;
}
.gate-chat strong {
  color: #e9d39f;
}
.gate-chat p {
  font-size: 17px;
  font-style: italic;
  min-height: 60px;
}
.gate-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gate-options button {
  background: #2b4934;
  border: 1px solid #927748;
  color: #f1dfbc;
  padding: 10px;
  font: 12px Arial;
}
.gate-options button:hover,
.gate-options button.active {
  background: #dfbf83;
  color: #19251c;
}
.gate-action {
  display: inline-block;
  margin-top: 15px;
  color: #f2d297;
}
.forum-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 17px;
}
.forum-links a {
  color: #694f27;
  font: 700 13px Arial;
}
.join-small {
  font: 13px/1.55 Arial !important;
  color: #6b604d;
}
.dialog-foot {
  color: #e0c58d;
}
.dialog-buttons {
  align-items: center;
}
.scene-section .secret-pin .pin-label {
  white-space: normal;
  min-width: 135px;
  text-align: center;
}
.pin-label {
  z-index: 10;
}
@media (max-width: 660px) {
  .adventure-cards {
    grid-template-columns: 1fr;
  }
  .gate-panel {
    padding: 14px;
    gap: 12px;
  }
  .gate-npc {
    font-size: 32px;
  }
  .journal-list {
    grid-template-columns: 1fr;
  }
}

/* v0.4.1 interaction repair */
.js-status {
  display: block;
  color: #ffca88;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 600;
}
.trail[hidden],
.secret-map[hidden] {
  display: none !important;
}
.trail {
  max-width: 1500px;
  margin: 12px auto;
  padding: 18px;
  border: 1px solid #d5b576;
  background: linear-gradient(120deg, #243d2b, #101f16);
  box-shadow: 0 12px 35px #0008;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.trail-start {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 670px;
}
.trail-icon {
  font-size: 35px;
}
.trail-start strong {
  color: #e9d8a7;
}
.trail-start p {
  margin: 5px 0;
  color: #f5e6bf;
  font-style: italic;
}
.trail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trail-actions .btn {
  font-size: 11px;
  padding: 12px;
}
.trail-x {
  border: 1px solid #806c48;
  background: transparent;
  color: #eee;
  font-size: 23px;
  padding: 6px 12px;
}
.secret-map {
  max-width: 1500px;
  margin: 17px auto 0;
  border: 1px solid var(--line);
  background: #18291e;
  padding: 12px 16px;
}
.secret-map summary {
  cursor: pointer;
  color: #ecd3a2;
  font:
    600 14px Arial,
    sans-serif;
  padding: 6px;
}
.secret-map p {
  color: #ccc4ad;
  font:
    13px Arial,
    sans-serif;
}
.map-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 7px;
}
.map-links button {
  color: #e5d7ba;
  background: #263a2b;
  border: 1px solid #6c694b;
  text-align: left;
  padding: 10px;
  font:
    13px Arial,
    sans-serif;
}
.map-links button:hover,
.map-links button:focus-visible {
  background: #3d5337;
}
.direct-journeys {
  max-width: 1500px;
  margin: 14px auto 0;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  color: #b8ad96;
  font:
    12px Arial,
    sans-serif;
}
.direct-journeys a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: #f0d4a0;
}
.direct-journeys a:hover {
  background: #304433;
}
.arrival {
  animation: arrival-pulse 1.4s ease-out 1;
}
@keyframes arrival-pulse {
  0% {
    box-shadow: inset 0 0 0 4px #d8b674;
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent;
  }
}
@media (max-width: 600px) {
  .trail {
    padding: 13px;
  }
  .trail-actions {
    width: 100%;
  }
  .trail-actions .btn {
    flex: 1;
  }
  .scene-help {
    font-size: 13px;
  }
  .secret-map {
    padding: 9px;
  }
}
