/* ==========================================================================
   PASSCODE SCREEN & ROMANTIC NUMERIC KEYPAD
   "The day and month we confessed ❤️"
   Passcode: 1306
   Bright blush, mysterious glow, smooth micro-interactions
   ========================================================================== */

.passcode-screen {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(circle at 50% 30%, #ffffff 0%, #fff2f6 50%, #ffe8f0 100%);
  padding: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  overflow-y: auto;
}

.passcode-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.passcode-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 182, 193, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(220, 70, 115, 0.14), 0 0 35px rgba(255, 182, 193, 0.25);
  padding: 2.5rem 1.8rem 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.passcode-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.passcode-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4.8vw, 1.8rem);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.passcode-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

/* 4-Dot Passcode Display */
.passcode-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.passcode-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 105, 145, 0.4);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.passcode-dot.is-filled {
  background: linear-gradient(135deg, #ff4d79, #ff7597);
  border-color: #ff3366;
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 77, 121, 0.6);
}

/* Romantic Keypad */
.romantic-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
}

.keypad-key {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 182, 193, 0.55);
  background: linear-gradient(135deg, #ffffff 0%, #fff4f7 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(220, 80, 120, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

.keypad-key:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffe9ef 100%);
  border-color: rgba(255, 105, 145, 0.6);
  box-shadow: 0 8px 20px rgba(220, 80, 120, 0.15);
  transform: translateY(-2px);
}

.keypad-key:active,
.keypad-key.is-pressed {
  transform: scale(0.92);
  background: linear-gradient(135deg, #ffe0e8 0%, #ffd0dc 100%);
  box-shadow: 0 2px 8px rgba(220, 80, 120, 0.2), inset 0 2px 6px rgba(255, 77, 121, 0.15);
  border-color: #ff4d79;
}

.keypad-key.keypad-delete {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.keypad-key.keypad-delete:hover {
  color: var(--pink-primary);
}

.keypad-subletter {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: -2px;
}

/* Error Message & Hints */
.passcode-status {
  min-height: 1.5rem;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d6336c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: opacity 0.3s ease;
}

.passcode-hint-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.6rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.passcode-hint-toggle:hover {
  color: var(--pink-primary);
}

@media (max-width: 400px) {
  .passcode-card {
    padding: 2rem 1.2rem 1.8rem;
    border-radius: 22px;
  }

  .passcode-title {
    font-size: 1.45rem;
  }

  .romantic-keypad {
    gap: 0.7rem;
    max-width: 250px;
  }

  .keypad-key {
    width: 62px;
    height: 62px;
    font-size: 1.35rem;
  }
}
