/* RetroPlay Mega Drive — journey / memory-card modals (app WebView) */

.rp-journey-scrim {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 20%, rgba(224, 168, 74, 0.14), transparent 55%),
    rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rpJourneyIn 0.28s ease-out;
}

@keyframes rpJourneyIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-journey-panel {
  width: min(100%, 380px);
  max-height: min(90vh, 560px);
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(224, 168, 74, 0.45);
  background:
    linear-gradient(165deg, rgba(24, 32, 44, 0.98) 0%, rgba(10, 14, 22, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(94, 200, 184, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.55);
  color: #f2e8d5;
  transform: translateY(8px);
  animation: rpJourneyPanel 0.32s ease-out forwards;
}

@keyframes rpJourneyPanel {
  to { transform: translateY(0); }
}

.rp-journey-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0a84a;
}

.rp-journey-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
  color: #f7f0e4;
}

.rp-journey-cover {
  display: block;
  width: 88px;
  height: 118px;
  margin: 0 auto 14px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(224, 168, 74, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: #121820;
}

.rp-journey-body {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #c5d0dc;
}

.rp-journey-body strong {
  color: #e0a84a;
  font-weight: 700;
}

.rp-journey-meta {
  margin: 0 0 18px;
  font-size: 12px;
  color: #5ec8b8;
  letter-spacing: 0.02em;
}

.rp-journey-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-journey-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rp-journey-btn--primary {
  background: linear-gradient(180deg, #e8b85a 0%, #c48a3a 100%);
  color: #1a1208;
  box-shadow: 0 4px 16px rgba(196, 138, 58, 0.35);
}

.rp-journey-btn--secondary {
  background: rgba(32, 48, 56, 0.85);
  color: #e8f4f2;
  border: 1px solid rgba(94, 200, 184, 0.45);
}

.rp-journey-btn--ghost {
  background: transparent;
  color: #9aa8b8;
  font-weight: 600;
  min-height: 40px;
  font-size: 13px;
}

.rp-journey-btn:active {
  transform: scale(0.98);
}

.chip-progress {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(14, 22, 36, 0.88);
  border: 1px solid rgba(224, 168, 74, 0.55);
  color: #e0a84a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.catalog-art { position: relative; }

body.rp-journey-open {
  overflow: hidden;
}
