html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #120f1f;
  touch-action: none;
}

body {
  color: #f5eddc;
  font-family: Georgia, "Times New Roman", serif;
  user-select: none;
  -webkit-user-select: none;
}

.shell {
  position: relative;
  width: 100%;
  height: 100%;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.status {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(13px, 2.2vw, 18px);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.92;
}

.hint,
.banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(10, 8, 18, 0.35);
}

.hint {
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
  font-size: clamp(14px, 2.8vw, 20px);
  opacity: 0.84;
  transition: opacity 260ms ease;
}

.hint.fade {
  opacity: 0;
}

.banner {
  top: 50%;
  width: min(82vw, 620px);
  font-size: clamp(22px, 4.8vw, 46px);
  line-height: 1.05;
  opacity: 0;
  transition: opacity 300ms ease;
}

.banner.show {
  opacity: 1;
}
