:is(.game-dinosaur, .game-pirate, .game-boots) {
  background: #d9f1e8;
}
:is(.game-dinosaur, .game-pirate, .game-boots) .game-header h2 {
  color: #517c68;
}
:is(.game-dinosaur, .game-pirate, .game-boots)
  .game-header
  > div:not(.game-header-actions) {
  background: #fffdf1f0;
}
.explore-hud {
  position: absolute;
  top: 112px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  pointer-events: none;
}
.explore-chapter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #577967;
  padding: 14px 19px;
  border-left: 3px solid #89b19a;
  background: linear-gradient(90deg, #f5f8eac7, #f5f8ea00);
}
.explore-chapter small {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #7a9b8c;
}
.explore-chapter b {
  font-size: 22px;
  letter-spacing: 2px;
}
.explore-chapter > span {
  font-size: 12px;
}
.explore-journal {
  padding: 12px 17px;
  border-radius: 6px 16px 16px 6px;
  background: #fffaeaf2;
  box-shadow:
    -4px 0 #a6b99a,
    0 4px 0 #6a8a6820;
  transform: rotate(2deg);
  color: #8f8466;
  text-align: center;
}
.explore-journal > span {
  font-size: 12px;
}
.explore-journal b {
  margin-left: 8px;
  color: #68896e;
}
.explore-journal > div {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.explore-stamp {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 1.5px dashed #c8c9af;
  border-radius: 6px;
  font-size: 23px;
  color: #c6c8af;
  background: #eeefdf;
}
.explore-stamp.found {
  border: 1.5px solid #8ca988;
  background: #dbe8bf;
  color: #618c72;
  transform: rotate(-9deg);
}
.explore-stamp.found:nth-child(2) {
  transform: rotate(8deg);
  background: #c7e2d5;
}
.explore-stamp.found:nth-child(3) {
  background: #e1d5ea;
  color: #9a85aa;
}
.explore-journal > small {
  font-size: 10px;
  letter-spacing: 1px;
}
.explore-route {
  position: absolute;
  left: 50%;
  top: 123px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  width: 240px;
  font-size: 10px;
  color: #729781;
  pointer-events: none;
}
.explore-route > div {
  position: relative;
  height: 5px;
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  border-radius: 8px;
  background: #f5f6dd;
}
.explore-route b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a2c197;
}
.explore-route-marker {
  position: absolute;
  top: -4px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff8df;
  border-radius: 50%;
  background: #db9ca9;
  transform: translateX(-50%);
}
.explore-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.explore-controls > div {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.explore-controls button {
  width: 63px;
  height: 60px;
  border: 3px solid #fff9e9c9;
  border-radius: 18px;
  background: #f7f2dbe8;
  color: #526648;
  box-shadow: 0 5px 0 #68856548;
  font-size: 20px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.explore-controls button.held {
  transform: translateY(3px);
  box-shadow: none;
  background: #f6df9d;
}
.explore-controls .explore-interact {
  width: 112px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  font-size: 12px;
  color: #81947e;
  background: #ecf0dcd9;
}
.explore-interact small {
  font-size: 11px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 4px;
}
.explore-controls .explore-interact:disabled {
  opacity: 0.5;
  cursor: default;
}
.explore-controls .explore-interact.available {
  background: #ffdf8e;
  color: #725b37;
  box-shadow:
    0 5px 0 #b99e5e75,
    0 0 0 5px #ffedb047;
}
.explore-controls .explore-jump {
  width: 109px;
  background: #eaa2b9ef;
  border-color: #fbd2db;
  color: #633449;
  font-size: 17px;
}
.explore-key-hint {
  position: absolute;
  left: 0;
  bottom: 81px;
  color: #658565;
  font-size: 11px;
}
:is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom {
  width: min(510px, calc(100% - 470px));
  left: 46%;
  height: 63px;
  bottom: 23px;
  background: #fffbeaeb;
}
:is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom > p {
  color: #727b60;
  font-size: 12px;
}
:is(.game-dinosaur, .game-pirate, .game-boots) .read-help {
  width: 35px;
  font-size: 0;
  padding: 0;
  flex: 0 0 35px;
}
:is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar > svg {
  width: 54px;
  height: 72px;
}
.explore-discovery {
  position: absolute;
  top: 29%;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 12px 24px;
  border: 2px solid #fff9dc;
  border-radius: 30px;
  background: #fff2cceb;
  box-shadow: 0 5px 0 #62856d20;
  color: #8e815c;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 180ms,
    transform 180ms;
  pointer-events: none;
}
.explore-discovery.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1000px) {
  .explore-route {
    top: 236px;
    left: 32px;
    transform: none;
    width: 235px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom {
    width: min(580px, calc(100% - 54px));
    left: 50%;
    bottom: 105px;
    height: 55px;
  }
  .explore-key-hint {
    display: none;
  }
}
@media (max-width: 600px) {
  .explore-hud {
    top: 88px;
    left: 17px;
    right: 17px;
    gap: 10px;
  }
  .explore-chapter {
    padding: 9px 0 9px 11px;
    flex: 1;
    min-width: 0;
    gap: 6px;
  }
  .explore-chapter small {
    display: none;
  }
  .explore-chapter b {
    font-size: 16px;
    letter-spacing: 0.7px;
  }
  .explore-chapter > span {
    font-size: 10px;
    line-height: 1.7;
    max-width: 170px;
  }
  .explore-journal {
    padding: 9px 10px;
  }
  .explore-journal > span {
    font-size: 10px;
  }
  .explore-journal b {
    margin-left: 3px;
  }
  .explore-journal > div {
    gap: 5px;
    margin: 7px 0;
  }
  .explore-stamp {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  .explore-journal > small {
    font-size: 8px;
    letter-spacing: 0;
  }
  .explore-route {
    left: 29px;
    top: 181px;
    width: 164px;
    font-size: 8px;
  }
  .explore-controls {
    left: 15px;
    right: 15px;
    bottom: max(20px, env(safe-area-inset-bottom));
    gap: 8px;
  }
  .explore-controls > div {
    gap: 7px;
  }
  .explore-controls button {
    width: 47px;
    height: 51px;
    border-radius: 15px;
    font-size: 17px;
    border-width: 2px;
  }
  .explore-controls .explore-jump {
    width: 74px;
    font-size: 14px;
  }
  .explore-controls .explore-interact {
    width: 87px;
    height: 51px;
    font-size: 10px;
    line-height: 1.5;
  }
  .explore-interact small {
    display: none;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom {
    bottom: 90px;
    width: calc(100% - 30px);
    height: 55px;
    padding: 8px 12px 8px 54px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom > p {
    font-size: 10px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar {
    width: 41px;
    height: 50px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar .pig {
    width: 47px;
    height: 54px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar > svg {
    width: 38px;
    height: 51px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .read-help {
    width: 24px;
    flex-basis: 24px;
  }
  .explore-discovery {
    max-width: calc(100% - 25px);
    white-space: normal;
    text-align: center;
    width: max-content;
    font-size: 12px;
    padding: 10px 16px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .explore-hud {
    top: 74px;
    left: 22px;
    right: 22px;
  }
  .explore-chapter {
    padding: 6px 10px;
    gap: 4px;
  }
  .explore-chapter small,
  .explore-journal > small {
    display: none;
  }
  .explore-chapter b {
    font-size: 16px;
  }
  .explore-chapter > span {
    font-size: 10px;
  }
  .explore-journal {
    padding: 6px 10px;
  }
  .explore-journal > span {
    font-size: 10px;
  }
  .explore-journal > div {
    margin: 4px 0 0;
    gap: 5px;
  }
  .explore-stamp {
    width: 24px;
    height: 23px;
    font-size: 17px;
  }
  .explore-route {
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    width: 175px;
  }
  .explore-controls {
    bottom: 15px;
    left: 22px;
    right: 22px;
  }
  .explore-controls button {
    height: 45px;
    width: 49px;
    border-radius: 13px;
  }
  .explore-controls .explore-interact {
    height: 45px;
    width: 92px;
    font-size: 10px;
  }
  .explore-controls .explore-jump {
    width: 78px;
    font-size: 13px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom {
    bottom: 15px;
    left: 46%;
    width: calc(100% - 385px);
    height: 46px;
    padding: 7px 10px 7px 44px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .game-bottom > p {
    font-size: 10px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar {
    width: 36px;
    height: 43px;
    left: 3px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar .pig {
    width: 43px;
    height: 49px;
  }
  :is(.game-dinosaur, .game-pirate, .game-boots) .dialogue-avatar > svg {
    width: 33px;
    height: 44px;
  }
  .explore-discovery {
    top: 39%;
    font-size: 12px;
    padding: 9px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .explore-discovery {
    transition: none;
  }
}
