:root {
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0D0A0B;
  color: #F4EAD5;
  font-family: Georgia, serif;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#stage {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.back-link {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 10px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #6B4A1A;
  background: rgba(20, 13, 16, 0.92);
  color: #FFE28A;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.back-link:hover {
  border-color: #FFE28A;
  background: #24181C;
}
