.game-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: var(--paper);
}

.site-back {
  position: fixed;
  top: 16px;
  left: 16px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--line);
  text-decoration: none;
  z-index: 20;
}

.game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.game-frame {
  position: relative;
  width: min(92vw, 420px);
  aspect-ratio: 5 / 8;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.game-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
}

.hud {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hud__score {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 2.6rem;
  color: #fff;
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
  line-height: 1;
}

.mute-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--plate);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.mute-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  background: rgba(251, 238, 242, 0.94);
  border-radius: 13px;
}
.overlay[hidden] {
  display: none;
}

.overlay__title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--line);
}
.overlay__sub {
  font-family: var(--serif);
  font-style: italic;
  margin: 0;
  color: var(--mud);
}
.overlay__best,
.overlay__score {
  font-family: var(--serif);
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}
.overlay .btn {
  margin-top: 6px;
  font-size: 0.95rem;
}

.game-hint {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mud);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}
