/* Scene "journey" — query → landing page → friction → fixes → path to the goal */
.jy { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 16px 0; gap: 12px; }
.jy-q { flex: none; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border-radius: 19px; border: 1px solid var(--line-2); background: rgba(5, 10, 28, 0.6); min-width: 0; }
.jy-g { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: var(--bg); background: conic-gradient(#5b8cff 0 25%, #57f2b0 0 50%, #ffbe5c 0 75%, #ff6f86 0); }
.jy-qt { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jy-intent { flex: none; opacity: 0; transform: scale(0.9); transition: opacity 0.35s, transform 0.45s var(--ease); color: var(--cyan); border-color: rgba(70, 225, 255, 0.45); }
.jy-intent.is-on { opacity: 1; transform: none; }
.jy-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 14px; }
.jy-page { min-height: 0; display: flex; flex-direction: column; gap: 7px; padding: 9px; border-radius: 11px; border: 1px solid var(--line-2); background: #0a1233; overflow: hidden; }
.jy-sec { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 7px; background: rgba(140, 165, 255, 0.06); transition: background 0.5s, box-shadow 0.5s; }
.jy-sec i { display: block; height: 5px; border-radius: 3px; background: rgba(160, 180, 255, 0.28); }
.jy-h { width: 62%; height: 9px !important; background: rgba(255, 255, 255, 0.75) !important; }
.jy-p { width: 70%; }
.jy-p2 { width: 52%; }
.jy-p3 { width: 38%; }
.jy-btn { width: 64px; height: 13px !important; border-radius: 7px !important; background: var(--accent) !important; }
.jy-hero { flex-grow: 1.4; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(154, 131, 255, 0.12)); }
.jy-ans { align-self: flex-start; font-style: normal; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; color: var(--muted); border: 1px dashed var(--line-2); transition: all 0.5s var(--ease); }
.jy.is-fixed .jy-ans { color: var(--bg); background: var(--mint); border-color: var(--mint); }
.jy.is-fixed .jy-answer { box-shadow: inset 0 0 0 1px rgba(87, 242, 176, 0.5); }
.jy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.jy-fields i { height: 8px; border-radius: 3px; background: rgba(5, 10, 28, 0.7); border: 1px solid var(--line-2); transition: opacity 0.5s, transform 0.5s var(--ease); }
.jy.is-fixed .jy-fields .jy-x { opacity: 0.12; transform: scaleX(0.6); }
.jy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.jy-cards i { height: 22px; border-radius: 4px; background: rgba(160, 180, 255, 0.14); }
.jy-next { transition: box-shadow 0.5s, background 0.5s; }
.jy.is-fixed .jy-next { background: var(--mint) !important; box-shadow: 0 0 12px rgba(87, 242, 176, 0.7); }
/* hotspots */
.jy-hot { position: absolute; right: 8px; top: 50%; display: flex; flex-direction: row-reverse; align-items: center; gap: 7px; transform: translateY(-50%); opacity: 0; transition: opacity 0.4s; pointer-events: none; max-width: calc(100% - 16px); }
.jy-hot.is-on { opacity: 1; }
.jy-hot b { flex: none; position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); transition: background 0.4s, box-shadow 0.4s; }
.jy-hot b::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--rose); animation: jy-ping 1.3s var(--ease) infinite; }
.jy-hot span { font-family: var(--f-mono); font-size: 10px; line-height: 1.3; padding: 3px 7px; border-radius: 5px; color: #ffc2cc; background: rgba(40, 8, 20, 0.88); border: 1px solid rgba(255, 111, 134, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jy-hot.is-fixed b { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.jy-hot.is-fixed b::after { animation: none; opacity: 0; }
.jy-hot.is-fixed span { color: #c8ffe6; background: rgba(6, 34, 26, 0.9); border-color: rgba(87, 242, 176, 0.5); }
@keyframes jy-ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
/* path */
.jy-path { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0 6px 4px; }
.jy-path::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.jy.is-fixed .jy-path::before { background: linear-gradient(180deg, var(--accent), var(--mint)); box-shadow: 0 0 10px rgba(87, 242, 176, 0.5); }
.jy-step { position: relative; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); transition: color 0.35s; }
.jy-step i { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg-2); transition: all 0.35s var(--ease); }
.jy-step.is-on { color: var(--text); }
.jy-step.is-on i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2); }
.jy.is-fixed .jy-step.is-on i { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 0 4px rgba(87, 242, 176, 0.18); }
.jy-exit { position: absolute; left: 22px; top: calc(100% + 1px); font-style: normal; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rose); opacity: 0; transform: translateX(-4px); transition: opacity 0.35s, transform 0.4s var(--ease); }
.jy-exit::before { content: "↘ "; }
.jy.is-friction .jy-step:nth-child(n+2) .jy-exit { opacity: 1; transform: none; }
/* meter */
.jy-meter { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 -16px; padding: 0 16px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.jy-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.jy-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--dim); transition: width 0.8s var(--ease), background 0.5s; }
.jy.is-weak .jy-bar i { width: 28%; background: var(--rose); }
.jy.is-strong .jy-bar i { width: 92%; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.jy-meter b { font-weight: 500; min-width: 52px; text-align: right; }
.jy.is-weak .jy-meter b { color: var(--rose); }
.jy.is-strong .jy-meter b { color: var(--mint); }
@media (max-width: 560px) {
  .jy { padding: 10px 10px 0; gap: 9px; }
  .jy-q { height: 34px; }
  .jy-qt { font-size: 11.5px; }
  .jy-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
  .jy-path { flex-direction: row; padding: 0 4px 12px; }
  .jy-path::before { left: 12px; right: 12px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .jy-step { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9px; }
  .jy-step:last-child { align-items: flex-end; }
  .jy-exit { display: none; }
  .jy-meter { margin: 0 -10px; padding: 0 10px; height: 34px; font-size: 9.5px; }
  .jy-hot span { font-size: 9px; padding: 2px 6px; }
  .jy-page { padding: 6px; gap: 5px; }
  .jy-sec { padding: 5px 8px; gap: 4px; }
  .jy-h { height: 7px !important; }
  .jy-sec i { height: 4px; }
  .jy-btn { width: 48px; height: 10px !important; }
  .jy-ans { font-size: 8px; padding: 1px 5px; }
  .jy-fields { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .jy-fields i { height: 6px; }
}
