/* Perfect Circle Game Styles */

.perfect-circle-frame {
  position: relative;
  background: #111 !important;
  cursor: crosshair;
  touch-action: none; /* Prevent scrolling while drawing */
  user-select: none;
  min-height: 450px;
}

.perfect-circle-frame canvas {
  display: block;
  width: 100%;
  height: 400px;
}

/* HUD - best score display */
#hud {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa;
  font-family: monospace;
  font-size: 0.95rem;
  z-index: 2;
}

/* Instructions overlay */
#instructions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #555;
  font-size: 1.1rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#instructions.hidden {
  opacity: 0;
}

/* Score display after drawing */
#scoreDisplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

#scoreDisplay.hidden {
  display: none;
}

#scoreValue {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#tryAgain {
  background: var(--color-accent, #5a9fd4);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#tryAgain:hover {
  opacity: 0.85;
}

/* Responsive canvas height */
@media (max-width: 768px) {
  .perfect-circle-frame canvas {
    height: 350px;
  }

  .perfect-circle-frame {
    min-height: 400px;
  }

  #scoreValue {
    font-size: 2.2rem;
  }
}
