/* Journey path map + lesson shell */

.journey-page {
  --journey-c1: #0d9488;
  --journey-c2: #134e4a;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  position: relative;
}

.journey-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(70% 60% at 50% 40%, var(--journey-c1) 0%, var(--journey-c2) 100%);
  pointer-events: none;
}

.journey-banner {
  text-align: center;
  padding: 0.5rem 1rem 0.25rem;
  color: #fff;
}
.journey-banner h1 {
  margin: 0;
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
}
.journey-banner p {
  margin: 0.25rem 0 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.journey-map-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 7.5rem;
}

.journey-map {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.journey-unit-label {
  text-align: center;
  margin: 1.75rem 0 0.75rem;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 1.05rem;
}
.journey-unit-label.locked {
  opacity: 0.55;
}

.journey-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.journey-nodes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.journey-node-row {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.journey-node-row.shift-left { justify-content: flex-start; padding-left: 18%; }
.journey-node-row.shift-right { justify-content: flex-end; padding-right: 18%; }

.journey-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: default;
  position: relative;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.journey-node.boss {
  border-radius: 1rem;
  width: 80px;
  height: 80px;
  background: rgba(250, 204, 21, 0.25);
  border-color: #facc15;
}
.journey-node.done {
  background: #22c55e;
  border-color: #86efac;
}
.journey-node.current {
  background: #38bdf8;
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.35), 0 8px 0 rgba(0,0,0,0.25);
  animation: journey-pulse 1.6s ease-in-out infinite;
}
.journey-node.locked {
  opacity: 0.4;
  filter: grayscale(0.4);
}
.journey-node.tappable {
  cursor: pointer;
}
.journey-node.tappable:active {
  transform: scale(0.96);
}
.journey-node-lock {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.85rem;
}

@keyframes journey-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 8px 0 rgba(0,0,0,0.25); }
  50% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0.15), 0 8px 0 rgba(0,0,0,0.25); }
}

.journey-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.journey-dock > * { pointer-events: auto; }

.journey-continue {
  width: min(100%, 360px);
  min-height: 56px;
  border: none;
  border-radius: 1rem;
  background: #facc15;
  color: #14532d;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Lilita One', sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 0 #ca8a04;
  cursor: pointer;
}
.journey-continue:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #ca8a04;
}
.journey-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.journey-dock-sub {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin: 0;
}

/* Lesson */
.journey-lesson {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
  padding: 0.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 360px;
}
.journey-ex-prompt {
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
}
.journey-letter-big {
  font-size: clamp(4rem, 18vw, 6rem);
  color: #fff;
  line-height: 1;
  margin: 0.5rem 0;
  font-weight: 700;
}
.journey-audio-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  font-size: 1.75rem;
  cursor: pointer;
  color: #fff;
}
.journey-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.journey-choice {
  width: 100%;
  min-height: 64px;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 700;
  cursor: pointer;
  direction: rtl;
}
.journey-choice.correct-tap {
  background: #22c55e;
  border-color: #16a34a;
}
.journey-choice.wrong-tap {
  background: #ef4444;
  border-color: #b91c1c;
}
.journey-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-height: min(48vh, 360px);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  background: #111;
}
.journey-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.journey-error {
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Home FAB */
.journey-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  width: 72px;
  height: 72px;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.journey-fab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.journey-fab span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.journey-fab:active {
  transform: scale(0.96);
}
