* {
  box-sizing: border-box;
}
html,
body,
main {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.combat-pause {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #232a3680;
  z-index: 19;
}
.combat-pause[hidden] {
  display: none;
}
.combat-pause section {
  width: min(350px, 90vw);
  max-height: 94vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #8ba4aa;
  background: #f7f7ed;
  color: #203b48;
  font: 13px/1.5 system-ui;
}
.combat-pause h2 {
  margin: 0 0 18px;
  font-size: 17px;
}
.combat-pause label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid #b5c4b7;
}
.combat-pause button {
  border: 1px solid #94aea7;
  padding: 8px 12px;
  background: #e2ece3;
  color: #203b48;
  font: inherit;
  cursor: pointer;
}
.combat-pause input {
  accent-color: #267fa2;
}
body {
  background: #8e9aa0;
  font-family: system-ui, sans-serif;
}
main {
  position: relative;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.portrait-note {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: #2c3440e8;
  color: #f1f0ea;
  z-index: 30;
  font-size: 16px;
}
.touch-minimal {
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.touch-minimal [data-zone] {
  position: absolute;
  inset: 0 58% 0 0;
}
.touch-minimal [data-zone='look'] {
  inset: 0 0 0 42%;
}
.touch-minimal button {
  position: absolute;
  border: 1px solid #e9f1f2b0;
  color: #f1f0ea;
  background: #232a3666;
  border-radius: 50%;
  font: 600 13px system-ui;
  width: 58px;
  height: 58px;
  touch-action: none;
}
.touch-minimal [data-action='charge'] {
  right: 7%;
  bottom: 13%;
  width: 80px;
  height: 80px;
}
.touch-minimal [data-action='jump'] {
  right: 3%;
  bottom: 43%;
}
.touch-minimal [data-action='dash'] {
  right: 20%;
  bottom: 9%;
}
.touch-minimal [data-action='lockToggle'] {
  right: 20%;
  bottom: 36%;
  width: 42px;
  height: 42px;
  font-size: 11px;
}
.touch-minimal .is-pressed {
  background: #19b6a5b3;
}
.touch-minimal:before,
.touch-minimal:after {
  content: '';
  display: none;
  position: absolute;
  border: 1px solid #e9f1f288;
  border-radius: 50%;
  pointer-events: none;
  left: var(--stick-ox);
  top: var(--stick-oy);
  transform: translate(-50%, -50%);
}
.touch-minimal:before {
  width: 112px;
  height: 112px;
}
.touch-minimal:after {
  width: 42px;
  height: 42px;
  background: #f1f0ea55;
  left: calc(var(--stick-ox) + var(--stick-x, 0px));
  top: calc(var(--stick-oy) + var(--stick-y, 0px));
}
.touch-minimal.is-stick-active:before,
.touch-minimal.is-stick-active:after {
  display: block;
}
@media (orientation: portrait) {
  .touch-device .portrait-note {
    display: grid;
  }
}
