.game-area {
  max-width: 900px;
  width: calc(100% - 48px);
  margin: 0 auto 32px;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,.08);
  position: relative;
  background: #f0efe8;
  cursor: pointer;
}

.game-area canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.game-hint {
  text-align: center;
  font-size: .82rem;
  color: var(--text-dim);
  margin: -16px auto 32px;
}

@media (max-width: 768px) {
  .game-area {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    aspect-ratio: 4/3;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .game-area {
    max-width: 720px;
    width: calc(100% - 40px);
  }
}
