#quest-sign {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #eed299;
  border-radius: 8px;
  background: linear-gradient(#674333, #372637);
  color: #fff4d7;
  padding: 0.4rem 0.65rem;
  box-shadow:
    0 3px 0 #281d27,
    0 8px 18px #10142f66;
  font-weight: 750;
  white-space: nowrap;
}
#quest-sign span {
  color: #ffce6c;
  margin-right: 0.22rem;
}
#quest-sign:hover,
#quest-sign:focus-visible {
  background: #785036;
}
.racing .sky {
  background-image: linear-gradient(0deg, #23395d52, transparent 65%), url('/art/crab-canyon.webp');
  background-size: cover;
  background-position: center;
}
.racing .sky:after {
  display: none;
}
.race-hud {
  position: absolute;
  top: clamp(70px, 11vh, 110px);
  left: max(20px, env(safe-area-inset-left));
  width: min(290px, 55vw);
  padding: 9px 14px;
  border: 1px solid #dac09290;
  border-radius: 12px;
  background: #182a40ec;
  color: #fef2d3;
}
.race-hud > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.84rem;
}
.race-hud strong {
  font-size: 0.72rem;
  white-space: nowrap;
}
.race-hud progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  accent-color: #ecc474;
  background: #384e60;
}
.race-hud progress::-webkit-progress-bar {
  background: #384e60;
}
.race-hud progress::-webkit-progress-value {
  background: #ecc474;
}
#race-feedback {
  position: absolute;
  pointer-events: none;
  bottom: clamp(84px, 15vh, 140px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-width: 88vw;
  border: 1px solid #d8ba8a;
  color: #fff0d1;
  background: #202d48ee;
  border-radius: 2rem;
  padding: 7px 15px;
  text-align: center;
}
dialog.quest-dialog {
  padding: 0;
  max-height: min(90dvh, 760px);
  width: min(470px, calc(100vw - 26px));
  border: 1px solid #c19764;
  border-radius: 20px;
  background: linear-gradient(150deg, #20364b, #17263b 60%);
  box-shadow: 0 22px 95px #06091bc4;
  overflow-x: hidden;
}
dialog.quest-dialog::backdrop {
  background: #0a102394;
  backdrop-filter: blur(5px);
}
.quest-dialog .close {
  position: absolute;
  float: none;
  z-index: 1;
  top: 10px;
  right: 10px;
  background: #152237e8;
}
.quest-art {
  height: clamp(125px, 26vh, 235px);
  background: #2f5266 url('/art/crab-quest.webp') center 16% / cover;
  border-bottom: 2px solid #c5a775;
}
.quest-copy {
  padding: clamp(16px, 4vw, 28px);
}
.quest-copy h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 3.1vw, 1.8rem);
  line-height: 1.22;
  color: #ffe0a1;
}
.quest-story {
  font-size: 1.01rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.quest-reward {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #233e4e;
  border: 1px solid #577278;
  border-radius: 11px;
  padding: 8px 12px;
}
.quest-reward > span {
  font-size: 1.8rem;
}
.quest-reward small,
.quest-reward strong {
  display: block;
}
.quest-reward small,
#brief-account {
  color: #cddeea;
}
#brief-account {
  font-size: 0.86rem;
}
.quest-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.quest-choices button {
  min-height: 41px;
}
#quest-voice {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--gold);
}
#quest-voice > span {
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(16% 1%, 99% 50%, 16% 99%);
}
#quest-voice[data-playing] > span {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  clip-path: none;
}
#quest-voice:disabled {
  cursor: default;
}
@media (forced-colors: active) {
  #quest-voice > span {
    background: ButtonText;
    forced-color-adjust: none;
  }
}
#finish-symbol {
  font-size: 3.3rem;
  margin-bottom: 0.4rem;
}
#finish-inventory {
  color: #ffe0a1;
  text-underline-offset: 0.2em;
  padding: 0.5rem 0.25rem;
}
@media (max-width: 620px) {
  .race-hud {
    left: 11px;
    top: 67px;
    width: min(245px, 74vw);
  }
  #race-feedback {
    bottom: 112px;
    font-size: 0.83rem;
  }
  #quest-sign {
    font-size: 0.79rem;
  }
  .racing #help-tip {
    display: none;
  }
}
@media (max-height: 520px) {
  .quest-art {
    height: 76px;
  }
  .quest-copy {
    padding: 12px 17px;
  }
  .race-hud {
    top: 56px;
  }
  .quest-story {
    font-size: 0.9rem;
  }
}
@media (pointer: coarse), (max-width: 620px) {
  #quest-sign {
    min-height: 42px;
  }
  #quest-sign kbd {
    display: none;
  }
}
