/* lab-password-power.css — Password Power (K-2) scene renderer.
   Oversized tap targets (≥96px), high contrast, no keyboard inputs.
   Reinforces existing theme variables from /css/app.css. */

.chip-ppk {
  background: rgba(0, 240, 255, 0.15) !important;
  color: #00f0ff !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
}

.pp-container {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

.pp-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 8px;
}

.pp-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 30px;
  font-size: 0.85rem;
  color: #cbd5e1;
  opacity: 0.7;
}

.pp-step.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
  opacity: 1;
  font-weight: 600;
}

.pp-step.done {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
  opacity: 1;
}

.pp-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pp-step-label {
  white-space: nowrap;
}

.pp-scene-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.pp-scene-header {
  margin-bottom: 20px;
}

.pp-scene-num {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00f0ff;
  font-weight: 700;
  margin-bottom: 8px;
}

.pp-scene-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 12px 0;
  font-family: 'Orbitron', sans-serif;
}

.pp-scene-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.pp-tap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
}

.pp-tap-row {
  grid-template-columns: repeat(3, 1fr);
}

.pp-tap-button {
  min-height: 110px;
  min-width: 110px;
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border: 2px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 18px 14px;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pp-tap-button:hover:not(:disabled) {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.pp-tap-button:active:not(:disabled) {
  transform: translateY(0);
}

.pp-tap-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.pp-tap-button.pp-tap-pw {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.pp-tap-button.pp-tap-small {
  min-height: 96px;
  min-width: 0;
  padding: 12px 8px;
  font-size: 0.95rem;
}

.pp-tap-button.pp-tap-small .pp-tap-emoji {
  font-size: 1.8rem;
}

.pp-tap-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.pp-tap-small .pp-tap-emoji {
  font-size: 1.7rem;
}

.pp-tap-label {
  font-size: 1rem;
  text-align: center;
}

.pp-tap-button.pp-selected {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25);
}

.pp-correct-flash {
  animation: pp-correct-flash 1.2s ease;
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.18) !important;
}

.pp-incorrect-flash {
  animation: pp-incorrect-shake 0.4s ease;
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.18) !important;
}

@keyframes pp-correct-flash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(34, 197, 94, 0.5); }
}

@keyframes pp-incorrect-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pp-feedback {
  margin: 16px 0;
  min-height: 24px;
}

.pp-correct-feedback {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.pp-incorrect-feedback {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.pp-next-btn, .pp-make-btn, .pp-lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f0ff, #7c3aed);
  color: #0f172a;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 8px;
}

.pp-next-btn:hover, .pp-make-btn:hover:not(:disabled), .pp-lock-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pp-make-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.pp-code-row {
  margin-bottom: 14px;
}

.pp-code-row-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00f0ff;
  font-weight: 700;
  margin-bottom: 10px;
}

.pp-pw-preview {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 2px dashed rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  min-height: 60px;
  letter-spacing: 0.05em;
}

.pp-door-illustration {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.pp-door-frame {
  width: 180px;
  height: 240px;
  background: linear-gradient(135deg, #475569, #1e293b);
  border: 6px solid #64748b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.5);
}

.pp-door-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
  gap: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.pp-door-panel.pp-door-locked {
  background: rgba(34, 197, 94, 0.25);
  transform: scale(0.98);
}

.pp-door-emoji {
  font-size: 4rem;
}

.pp-door-status {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.05em;
}

.pp-door-locked .pp-door-status {
  color: #86efac;
}

.pp-audio-btn {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 8px;
}

@media (max-width: 600px) {
  .pp-scene-card {
    padding: 18px 14px;
  }
  .pp-scene-title {
    font-size: 1.25rem;
  }
  .pp-tap-button {
    min-height: 96px;
    padding: 14px 10px;
  }
  .pp-step {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .pp-step-label {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
