* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.5 system-ui,
    sans-serif;
  color: #183d38;
}
main {
  position: relative;
  height: 100dvh;
  min-height: 320px;
  background: #e9eede;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
canvas:active {
  cursor: grabbing;
}
header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
header > div,
nav {
  background: #fafbf6f5;
  border: 1px solid #d6ddcf;
  border-radius: 8px;
  box-shadow: 0 2px 8px #233f2910;
}
header > div {
  padding: 14px 18px;
}
h1 {
  margin: 0;
  font:
    26px/1.2 Georgia,
    serif;
}
header p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #596f65;
}
nav {
  display: flex;
  pointer-events: auto;
}
button {
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid #d6ddcf;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button:last-child {
  border-right: 0;
}
button:hover {
  background: #e5ebdf;
}
footer {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 4px 8px;
  background: #ffffffed;
  font-size: 10px;
}
a {
  color: inherit;
}
#tileNotice {
  position: absolute;
  bottom: 32px;
  left: 20px;
  background: #fff1dc;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
}
@media (max-width: 560px) {
  header {
    top: 12px;
    left: 12px;
    right: 12px;
    flex-direction: column;
  }
  h1 {
    font-size: 23px;
  }
  header > div {
    padding: 12px 14px;
  }
  footer {
    font-size: 9px;
  }
}
