.sky-flap-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #05070a;
}

.sky-flap-screen:focus {
  transform: scale(0.995);
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 584px;
  height: 584px;
  display: block;
  background: #08111f;
}

.hud {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  pointer-events: none;
}

.hud > div {
  min-width: 0;
  padding: 9px 14px;
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.76);
  border: 1px solid rgba(112, 231, 255, 0.16);
  backdrop-filter: blur(2px);
}

.hud span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.hud strong {
  display: block;
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

#score {
  color: var(--warm);
}

#best-score {
  color: var(--accent-strong);
}

.overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.46);
  text-align: center;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
}

.overlay p {
  color: var(--warm);
  font-size: 18px;
  font-weight: 900;
}
