.screen--puzzle {
  flex-direction: column;
  gap: 20px;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.puzzle-title {
  color: #e8ecf5;
  font-family: 'Cinzel', 'Georgia', 'Times New Roman', serif;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(120, 170, 255, 0.6), 0 0 4px #fff;
  margin: 0;
}

.puzzle-subtitle {
  color: #b8b8b8;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-style: italic;
  margin: -8px 0 0;
  text-align: center;
}

#puzzle-canvas {
  border: 2px solid #8b0000;
  background: #111;
  touch-action: none;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.puzzle-tray {
  margin-top: -12px;
  color: #8b8b8b;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.puzzle-tray--done {
  opacity: 0;
}

.puzzle-message {
  color: #ffffff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.9);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.puzzle-message.visible {
  opacity: 1;
  transform: scale(1);
}

.screen--puzzle #next-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen--puzzle #next-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
