* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky, #70c5ce);
  color: var(--ink, #ffffff);
  touch-action: none;
  overscroll-behavior: none;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.field {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 640px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  touch-action: none;
}

canvas {
  display: block;
  width: 360px;
  height: 640px;
  image-rendering: pixelated;
  touch-action: none;
}

.ready,
.over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ready[hidden],
.over[hidden] {
  display: none;
}

.title {
  margin: 0 0 8px;
  font: 700 52px/1 system-ui, sans-serif;
  color: var(--ink, #ffffff);
  text-shadow: 0 3px 0 var(--shadow, #1d4a52);
}

.hint {
  margin: 0;
  font: 600 22px/1.2 system-ui, sans-serif;
  color: var(--ink, #ffffff);
  text-shadow: 0 2px 0 var(--shadow, #1d4a52);
}

.over {
  background: color-mix(in srgb, var(--veil, #0f2e35) 45%, transparent);
  pointer-events: auto;
}

.over h1 {
  margin: 0 16px 8px;
  font: 700 36px/1.1 system-ui, sans-serif;
  color: var(--ink, #ffffff);
  text-shadow: 0 3px 0 var(--shadow, #1d4a52);
}

.result {
  margin: 0 16px;
  font: 600 18px/1.3 system-ui, sans-serif;
  color: var(--ink, #ffffff);
}

.play {
  margin-top: 22px;
  min-width: 148px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--ink, #ffffff);
  color: var(--shadow, #1d4a52);
  font: 700 16px/1 system-ui, sans-serif;
}

.score {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font: 700 42px/1 system-ui, sans-serif;
  color: var(--ink, #ffffff);
  text-shadow: 0 3px 0 var(--shadow, #1d4a52);
  pointer-events: none;
}
