.sh-stage {
  flex: 0 1 420px;
  /* keep the 2:3 field fully visible on short screens */
  width: min(100%, 420px, calc((100dvh - 250px) * 2 / 3));
  min-width: 260px;
}

.sh-field {
  position: relative;
  margin-top: 8px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--gk-line);
  border-radius: var(--gk-radius);
  overflow: hidden;
  box-shadow: var(--gk-glow);
}

.sh-field canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  cursor: crosshair;
}

.sh-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: #ffffff;
  background: rgba(8, 6, 26, 0.72);
}

.sh-overlay[hidden] {
  display: none;
}

.sh-overlay h1 {
  margin: 0;
  font-size: 1.7rem;
}

.sh-overlay p {
  margin: 0;
  max-width: 28ch;
  white-space: pre-line;
}

.sh-pause {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.sh-lives {
  gap: 4px;
  min-height: 1.74rem;
}

.sh-life {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gk-danger);
}

.sh-life.is-lost {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--gk-line);
}
