/* One active objective stays in the HUD; instructions and practice are on demand. */
.story-entry {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 16px 0 10px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: #2c5843;
  color: #fff5df;
  box-shadow: 0 4px 0 #204330;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.story-entry:focus-visible {
  outline: 3px solid #e2bb6d;
  outline-offset: 3px;
}
.voxel-stage.voxel-entered .story-entry {
  display: none;
}
.voxel-stage:not(.voxel-entered) .voxel-play {
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: #627763;
  border: 1px solid #b6c3a5;
  box-shadow: none;
  font-size: 13px;
}
.voxel-stage .tree-objective {
  gap: 8px;
}
.voxel-stage .tree-objective > strong {
  min-width: 0;
  flex: 1;
}
.story-compass-button {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  margin: -8px -6px -8px 0;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: #d3d7a91c;
  color: #ffe4a1;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  touch-action: manipulation;
}
.story-compass-button[hidden] {
  display: none;
}
.story-compass-button i {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 13px solid #f5d38a;
  transform-origin: 50% 65%;
}
.story-compass-button:focus-visible {
  outline: 2px solid #f4d182;
  outline-offset: 2px;
}
.story-journal-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7e8d6a;
}
.story-journal > progress {
  appearance: none;
  -webkit-appearance: none;
  background: #dfe7d3;
  width: 100%;
  margin: 10px 0 16px;
  height: 7px;
  accent-color: #77985b;
}
.story-journal h3 {
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}
.story-journal p {
  font-size: 16px;
  line-height: 1.7;
  margin: 10px 0;
}
.story-journal > small {
  font-size: 12px;
  color: #7d886e;
  line-height: 1.6;
}
.story-journal details {
  border-top: 1px solid #e1e4d5;
  margin: 20px 0 10px;
  padding-top: 12px;
  font-size: 13px;
  color: #75846b;
}
.story-journal summary {
  cursor: pointer;
  min-height: 36px;
  padding: 6px 0;
}
.story-journal ol {
  padding-left: 22px;
  line-height: 1.9;
  margin: 5px 0 15px;
}
.memory-dialog {
  width: min(540px, calc(100vw - 24px));
}
.memory-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #8a9675;
}
.memory-progress > progress {
  appearance: none;
  -webkit-appearance: none;
  background: #dfe7d3;
  flex: 1;
  min-width: 30px;
  height: 6px;
  accent-color: #78976b;
}
.memory-progress > progress::-webkit-progress-value,
.story-journal > progress::-webkit-progress-value {
  background: #78976b;
}
.memory-progress > progress::-webkit-progress-bar,
.story-journal > progress::-webkit-progress-bar {
  background: #dfe7d3;
}
.memory-progress > progress::-moz-progress-bar,
.story-journal > progress::-moz-progress-bar {
  background: #78976b;
}
.memory-glyph {
  font:
    92px/1.1 "Batang",
    "Noto Serif KR",
    serif;
  color: #35584a;
  text-align: center;
  padding: 25px 0 28px;
  background: radial-gradient(ellipse, #e7ecd8aa, transparent 68%);
  margin: 10px 0;
}
.memory-hint-button {
  display: block;
  margin: 14px auto 0;
  font-size: 12px !important;
  background: transparent !important;
  color: #818d72 !important;
  font-weight: 600 !important;
}
.memory-hint {
  font-size: 13px;
  line-height: 1.7;
  border-radius: 10px;
  padding: 12px;
  background: #eeedda;
  color: #7b815e;
}
.memory-feedback {
  border-radius: 16px;
  background: #eaf0e1;
  padding: 18px;
  text-align: center;
}
.memory-feedback > strong {
  display: block;
  font-size: 15px;
  color: #67865a;
}
.memory-feedback > b {
  display: block;
  font-size: 24px;
  margin: 12px 0;
  letter-spacing: -0.04em;
}
.memory-feedback p {
  font-size: 15px;
  line-height: 1.85;
  color: #60765f;
}
.memory-feedback small {
  font-size: 12px;
  color: #7e8c70;
  line-height: 1.7;
}
.memory-stamp {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 3px double #b8925d;
  border-radius: 50%;
  margin: 24px auto;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: #a28150;
  transform: rotate(-8deg);
  background: #f6edcf;
}
.memory-result {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 16px 0 10px;
}
.memory-result + p {
  font-size: 13px;
  text-align: center;
  color: #859073;
}
.memory-collected {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.memory-collected > span {
  font:
    32px "Batang",
    serif;
  display: grid;
  place-items: center;
  width: 54px;
  height: 62px;
  border-radius: 10px;
  background: #e7ead7;
  box-shadow: 0 3px 0 #d4dcc3;
}
.memory-next {
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #65835c;
}
.memory-note {
  font-size: 11px;
  line-height: 1.7;
  color: #949b86;
  text-align: center;
}
.memory-workshop-status {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 12px;
  padding: 14px;
  background: #e8eddc;
  font-size: 14px;
}
.memory-workshop-status > span {
  font-size: 12px;
  color: #7b896d;
}
.voxel-game-menu > [data-memory="open"] {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #c8d2b8;
  background: #e7edd9;
  color: #3f6547;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.voxel-game-menu > [data-memory="open"]:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 370px) {
  .voxel-stage .tree-objective {
    gap: 4px;
    padding-left: 8px;
  }
  .voxel-stage .tree-objective > strong {
    font-size: 11px;
  }
  .story-compass-button {
    min-width: 40px;
  }
  .memory-glyph {
    font-size: 76px;
    padding: 15px 0 20px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .memory-glyph {
    font-size: 60px;
    margin: 0;
    padding: 8px;
  }
  .memory-dialog .story-dialog-head {
    margin-bottom: 12px;
  }
}
