/* Screens overlays */
.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background: rgba(10, 6, 26, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 30px;
  text-align: center;
}

.screen-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.card {
  background: linear-gradient(180deg, #241445 0%, #140b2b 100%);
  border: 3px solid var(--accent);
  border-radius: 28px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 30px rgba(255, 94, 165, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 15px var(--accent);
}

.card-subtitle {
  font-size: 1rem;
  color: #ff9ebb;
  margin-bottom: 24px;
}

/* Difficulty Picker styling for fingers on iPad */
.difficulty-picker {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 30px;
  gap: 6px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 440px;
}

.diff-btn {
  flex: 1;
  background: transparent;
  color: #bcaaf5;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 10px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diff-btn.active {
  background: linear-gradient(135deg, #ff4790 0%, #9900ff 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 71, 144, 0.4);
}

.game-info-stats {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.info-label {
  color: #bfafe3;
}

.info-value {
  font-weight: bold;
  color: #fff;
}

.info-value.highlight {
  color: #ffe600;
  text-shadow: 0 0 8px rgba(255,230,0,0.4);
}

/* Touch Action Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff4790 0%, #b83cff 100%);
  color: white;
  border: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(255, 71, 144, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-transform: uppercase;
  width: 100%;
}

.btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(255, 71, 144, 0.2);
}

.character-preview {
  margin-bottom: 15px;
  width: 110px;
  height: 110px;
  animation: float 2.5s infinite ease-in-out;
}

/* Tip area for controls */
.tutorial-tips {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #bbaee0;
  line-height: 1.4;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-light {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(184, 60, 255, 0.7); }
}