.story-hud {
  position: fixed;
  left: 22px;
  top: 100px;
  z-index: 45;
  width: min(325px, calc(100vw - 44px));
  background: linear-gradient(125deg, #142c27ef, #253d33e8);
  color: #f7ecd0;
  border: 1px solid #d7bc7466;
  border-radius: 14px;
  padding: 15px 17px;
  box-shadow: 0 8px 30px #0004;
  font: 14px/1.5 system-ui;
}
.story-eyebrow {
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d8bd7e;
  margin: 0 0 6px;
}
.story-hud h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
.story-hud p {
  margin: 5px 0;
}
.story-hud button,
.story-dialog button,
.story-journal button {
  font: 600 13px system-ui;
  color: #f8efd9;
  background: #355b4b;
  border: 1px solid #d9bd7777;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.story-hud button:focus-visible,
.story-dialog button:focus-visible,
.story-journal button:focus-visible {
  outline: 3px solid #ffdc8d;
  outline-offset: 3px;
}
.story-hud .story-distance {
  font-size: 12px;
  color: #b5d6c1;
}
.story-interact {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 49;
  background: #f2d896 !important;
  color: #20392e !important;
  max-width: 80vw;
}
.story-dialog {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}
.story-letterbox {
  height: 7vh;
  background: #0a1710dc;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.story-dialog-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 190px;
  padding: 25px max(25px, calc((100vw - 960px) / 2));
  background: linear-gradient(0deg, #0c201bf9, #16342ef5);
  border-top: 1px solid #d8bd7e88;
  color: #f8efd9;
  pointer-events: auto;
  font: 17px/1.6 system-ui;
}
.story-dialog h2 {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #e8c982;
  margin: 3px 0;
}
.story-line {
  max-width: 900px;
  margin: 10px 0 16px;
}
.story-dialog-actions,
.story-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.story-dialog [data-skip] {
  background: transparent;
}
.story-journal {
  position: fixed;
  inset: 5vh max(18px, calc((100vw - 1000px) / 2));
  z-index: 145;
  overflow: auto;
  background: #f3ead5;
  color: #203c32;
  border: 1px solid #c4b07a;
  border-radius: 16px;
  padding: 28px;
  font: 15px/1.65 system-ui;
  box-shadow: 0 0 0 100vmax #071b15bb;
}
.story-journal h1 {
  font:
    36px Georgia,
    serif;
  margin: 4px 0;
}
.story-journal h2 {
  font:
    23px Georgia,
    serif;
}
.story-journal article {
  border-top: 1px solid #b8bd9d;
  padding: 12px 0;
}
.story-journal li {
  margin: 8px 0;
}
.story-journal button {
  margin: 0 8px;
}
.story-speaking .story-hud,
.story-speaking .story-interact {
  visibility: hidden;
}
.story-dialog.hidden,
.story-journal.hidden,
.story-hud.hidden,
.story-interact[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .story-hud {
    top: 86px;
    left: 10px;
    width: 230px;
    padding: 10px;
    font-size: 12px;
  }
  .story-hud h3 {
    font-size: 14px;
  }
  .story-dialog-card {
    font-size: 14px;
    padding: 16px 18px;
    max-height: 65vh;
    overflow: auto;
  }
  .story-journal {
    padding: 18px;
  }
  .story-interact {
    bottom: 170px;
  }
}

.story-speaking #faunaraFieldAction,
.story-speaking #faunaraWorldAction,
.story-speaking #faunaraHud {
  visibility: hidden;
}

.story-hud {
  top: 124px;
}
.story-interact {
  font: 600 14px/1.4 system-ui;
  border: 1px solid #dbc581;
  border-radius: 9px;
  padding: 12px 20px;
  box-shadow: 0 4px 18px #0004;
  cursor: pointer;
}
.story-interact:focus-visible {
  outline: 3px solid #ffdc8d;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .story-hud {
    top: 116px;
  }
}
.story-evidence {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 22px 12px;
  border: 1px solid #bea875;
  border-radius: 12px;
  background: linear-gradient(
    110deg,
    #536d43 0 30%,
    #988853 31% 64%,
    #4d7e86 65%
  );
  color: #fff7dd;
  font-weight: 700;
  text-shadow: 0 1px 3px #13251c;
}
.story-evidence span {
  padding: 8px;
  background: #142e26cc;
  border-radius: 6px;
}
.story-endorsement {
  padding: 12px;
  background: #e5d69f;
  border-left: 4px solid #9c7840;
}
.story-journal nav {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.story-journal nav button[aria-pressed="true"] {
  outline: 2px solid #b0924d;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .story-evidence {
    font-size: 12px;
    gap: 6px;
    padding: 12px 6px;
  }
  .story-evidence span {
    padding: 5px;
  }
}
