* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  font:
    18px system-ui,
    sans-serif;
  color: #f9f6ed;
  background: #92abc3;
}
#view canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}
.glass,
#alert {
  background: linear-gradient(110deg, #181b19e8, #202321b0);
  border: 1px solid #f3ecd13d;
  box-shadow: 0 2px 12px #1113;
}
.glass,
#alert,
#map,
#objective,
#mark,
#notice,
nav,
#end {
  position: absolute;
}
#herd {
  top: 3%;
  left: 2%;
  padding: 10px 23px 11px 14px;
  font-size: 23px;
}
small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #e2dfcf;
}
.goat {
  font-size: 27px;
  color: #e5decc;
}
#herd small {
  margin-top: 4px;
}
#alert {
  top: calc(3% + 79px);
  left: 2%;
  padding: 7px 22px;
  color: #ff7567;
  font-weight: 700;
  letter-spacing: 0.12em;
}
#map {
  right: 1.8%;
  top: 2%;
  width: clamp(130px, 13vw, 220px);
}
#prompt {
  right: 2%;
  top: 61%;
  padding: 12px 16px;
}
kbd {
  background: #e8e5da;
  color: #212421;
  padding: 2px 4px;
  border-radius: 3px;
}
#prompt small {
  padding-top: 6px;
  text-align: right;
}
#mark {
  color: #ff5c49;
  text-shadow: 0 2px 4px #250a06;
  font: bold 30px sans-serif;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
#objective,
#notice,
#end {
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  background: #172019e8;
  padding: 18px 28px;
  border-top: 2px solid #c7b889;
}
#objective {
  top: 4%;
  transition: opacity 1s;
  pointer-events: none;
  font-family: Georgia, serif;
}
h1 {
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 34px);
  margin: 8px 0;
}
p {
  font: 13px system-ui;
  margin-bottom: 0;
}
#notice {
  bottom: 14%;
  font-size: 15px;
  pointer-events: none;
}
#notice:empty {
  display: none;
}
#stamina {
  left: 2%;
  bottom: 4%;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#stamina i {
  font-size: 28px;
}
meter {
  width: 15vw;
  height: 14px;
}
meter::-webkit-meter-optimum-value {
  background: #64aa86;
}
nav {
  right: 2%;
  bottom: 3%;
  display: flex;
  padding: 6px;
  gap: 5px;
}
button {
  cursor: pointer;
  color: inherit;
  background: #151715af;
  border: 1px solid #a8a49370;
  font: 11px system-ui;
  letter-spacing: 0.09em;
  padding: 6px 12px;
}
button strong {
  display: block;
  font: 30px Georgia;
}
button.active {
  border-color: #eadcba;
  background: #615c47aa;
}
#end {
  top: 32%;
  min-width: 350px;
  padding: 32px;
}
#end button {
  margin-top: 20px;
  padding: 12px 24px;
}
svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}
.goat svg {
  width: 1.35em;
}
nav button {
  position: relative;
  min-width: 62px;
  padding-top: 8px;
  color: #e5e0d2;
}
nav button strong svg {
  width: 35px;
  height: 35px;
}
#objective {
  box-shadow: 0 8px 30px #16201748;
}
#notice {
  z-index: 2;
}
#weather {
  position: absolute;
  right: 2.7%;
  top: calc(2% + clamp(130px, 13vw, 220px));
  background: #252a28b8;
  padding: 4px 10px;
  color: #eee9da;
}

#mark {
  background: #b53027;
  color: #fff1d9;
  clip-path: polygon(50% 0, 100% 96%, 0 96%);
  font: bold 21px/35px system-ui;
  text-align: center;
  width: 31px;
  height: 30px;
  text-shadow: none;
}
