.screen[data-screen="play"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: none;
}

.screen[data-screen="play"].active {
  display: block;
}

.stage-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #06090e;
  overflow: hidden;
  touch-action: none;
}

#flight-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Play screen HUD styling */
.hud {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 50;
  pointer-events: none;
}

.hud .pill {
  pointer-events: auto;
}

/* Pitch Vertical Bar on Left */
.pitch-ladder {
  position: absolute;
  top: 86px;
  bottom: 28px;
  left: 20px;
  width: 44px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  z-index: 20;
  pointer-events: none;
}

.pitch-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.pitch-tag.high {
  color: #EC4899;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

.pitch-tag.low {
  color: #38BDF8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.pitch-bar-track {
  position: relative;
  flex: 1;
  width: 8px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.pitch-target-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #EC4899 50%, #6366F1 100%);
  box-shadow: 0 0 14px #EC4899, 0 0 24px rgba(236, 72, 153, 0.6);
  border: 2px solid #FFFFFF;
  transition: top 0.06s linear;
}

/* Touch overlay hint */
.touch-overlay {
  position: absolute;
  bottom: 24px;
  right: 28px;
  pointer-events: none;
  z-index: 20;
}

.drag-hint {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
  .hud {
    top: 80px;
    gap: 16px;
  }

  .hud .pill {
    padding: 10px 24px;
    font-size: 24px;
  }

  .pitch-ladder {
    left: 36px;
    top: 96px;
    bottom: 36px;
    width: 52px;
    padding: 16px 8px;
    border-radius: 26px;
  }

  .pitch-tag {
    font-size: 11px;
  }

  .pitch-target-cursor {
    width: 26px;
    height: 26px;
  }

  .drag-hint {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 16px;
  }

  .touch-overlay {
    bottom: 32px;
    right: 36px;
  }
}

@media (max-width: 600px) {
  .hud {
    top: 66px;
    width: 96%;
    max-width: 380px;
    gap: 6px;
    justify-content: center;
  }

  .hud .pill {
    padding: 6px 12px;
    font-size: 14px;
  }

  .pitch-ladder {
    left: 8px;
    top: 76px;
    bottom: 16px;
    width: 32px;
    padding: 8px 3px;
    border-radius: 16px;
  }

  .pitch-tag {
    font-size: 7px;
  }

  .pitch-target-cursor {
    width: 16px;
    height: 16px;
  }

  .drag-hint {
    font-size: 10px;
    padding: 5px 10px;
  }

  .touch-overlay {
    bottom: 14px;
    right: 14px;
  }
}

@media (max-height: 650px) {
  .hud {
    top: 56px;
  }

  .pitch-ladder {
    top: 64px;
    bottom: 12px;
  }
}
