* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  font-family: "Courier New", Courier, monospace;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.game-wrap {
  width: min(96vw, 900px, calc((100vh - 110px) * 3));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar h1 {
  font-size: clamp(14px, 3.2vw, 22px);
  letter-spacing: 4px;
  color: #535353;
}

#muteBtn {
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  background: #fff;
  border: 2px solid #535353;
  border-radius: 6px;
  cursor: pointer;
  color: #535353;
}

#muteBtn:active {
  transform: translateY(1px);
}

#game {
  width: 100%;
  aspect-ratio: 3 / 1;
  display: block;
  border: 2px solid #535353;
  border-radius: 6px;
  background: #d7ecf9;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

.hint {
  text-align: center;
  font-size: clamp(11px, 2.4vw, 14px);
  color: #9a9a9a;
  letter-spacing: 1px;
}

.credits {
  text-align: center;
  font-size: clamp(10px, 2vw, 12px);
  color: #b5b5b5;
  letter-spacing: 1px;
  margin-top: 2px;
}

.credits a {
  color: #8a8a8a;
}

.mobile-hint {
  display: none;
}

@media (pointer: coarse) {
  .desktop-hint {
    display: none;
  }

  .mobile-hint {
    display: inline;
  }
}
