.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.is-journey{overflow:hidden;background:#b8dbe6}
.is-journey #main{height:100svh;min-height:0;overflow:clip}
.is-journey .site-header{display:none}
.is-journey .site-header a,.is-journey .site-header button{pointer-events:auto}
.is-journey .brand small,.is-journey .header-home{display:none}
.is-journey .brand svg{stroke:#fff9e9;fill:none;filter:drop-shadow(0 1px 4px #24506c55)}
.is-journey .brand>span{color:#fff9e9;text-shadow:0 1px 6px #24506c66}
.is-journey .account-button{background:#ffffff55;border-color:#ffffff88;color:#284e59;backdrop-filter:blur(12px)}
.journey-scene{position:relative;isolation:isolate;width:100%;height:100svh;overflow:clip;touch-action:none;user-select:none;cursor:grab;background:#b8dbe6}
.journey-scene.is-dragging{cursor:grabbing}
.journey-settings{position:absolute;right:max(20px,env(safe-area-inset-right));top:max(20px,env(safe-area-inset-top));z-index:12}
.journey-sky{position:absolute;inset:0;z-index:-3;background:#b8dbe6 url('/scene/sky-v1.webp') center center/cover no-repeat}
.journey-light{position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(180deg,#f8fcff35 0%,transparent 25%,transparent 68%,#254e4520 100%)}
.journey-pixel-grove{position:absolute;inset:0;z-index:-1;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.journey-portrait{position:absolute;left:50%;top:3vh;transform:translateX(-50%);height:120vh;width:80vh;max-width:none;z-index:-2;pointer-events:none;opacity:1;filter:none}
.journey-portrait-still,.journey-portrait-blink{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center top}
.journey-portrait-blink{opacity:0}
.journey-portrait[data-blink-ready="true"] .journey-portrait-still{visibility:hidden}
.journey-portrait[data-blink-ready="true"] .journey-portrait-blink{opacity:1}
.journey-landscape{position:absolute;inset:0}
.journey-road{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.journey-ground{filter:url(#journey-texture)}
.journey-couple{position:absolute;left:50%;width:clamp(250px,30vw,430px);height:clamp(220px,43vh,390px);transform:translateX(-50%);z-index:6;pointer-events:none;--journey-hop:0px}
.journey-encounter{position:absolute;left:50%;top:0;transform:translateX(-50%);z-index:6;pointer-events:none;image-rendering:pixelated;opacity:0}
.journey-couple-art{position:absolute;width:100%;height:100%;inset:0;object-fit:contain;object-position:center bottom;transform:translate3d(0,var(--journey-hop),0);transform-origin:center bottom;filter:drop-shadow(0 2px 2px #7c654c0c)}
.journey-couple-shadow{position:absolute;bottom:-2px;left:18%;width:67%;height:12px;border-radius:50%;background:#4c6a5240;filter:blur(5px)}
.journey-stops{position:absolute;inset:0;z-index:5;pointer-events:none}
.road-stop{--stop-width:200px;--selection:0;position:absolute;top:0;left:0;display:block;width:var(--stop-width);aspect-ratio:80/56;height:auto;margin-left:calc(var(--stop-width) * -.5);margin-top:calc(var(--stop-width) * -.658);transform-origin:50% 94%;pointer-events:auto;outline-offset:2px;border-radius:0;cursor:pointer;isolation:isolate}
.road-stop[hidden]{display:none}
.road-stop-link{position:absolute;inset:0}
.road-stop-flower{position:absolute;z-index:3;left:54%;top:71%;transform:translate(-50%,-50%);display:grid;place-items:center;width:40px;height:40px;padding:6px;border:0;background:transparent;color:#f899b9;filter:drop-shadow(1px 2px 0 #693744)}
.road-stop-flower svg{width:24px;height:24px;fill:currentColor;shape-rendering:crispEdges}
.road-stop-flower .date-flower-center{fill:#ffe59a}
.road-stop-flower:hover,.road-stop-flower:focus-visible{color:#ffc7db}
.road-stop-add .road-stop-link{width:100%;height:100%;padding:0;border:0;background:transparent;font:inherit;color:inherit}
.road-stop-add .road-stop-caption{gap:0;top:22%;height:31%}
.road-stop-add .road-stop-title{font-family:var(--dialog-font,var(--font));font-weight:400;font-size:14px;line-height:1.2;color:#7f3e4b}
.road-stop-plus{font:bold 18px/1 var(--font);color:#a55772;text-shadow:0 1px #fff2c8}
.road-stop-pets{position:absolute;left:0;top:-96px;width:100%;height:192px;z-index:0;image-rendering:pixelated;pointer-events:none}
.road-stop-art{position:absolute;inset:0;width:100%;height:100%;z-index:1;image-rendering:pixelated;filter:brightness(calc(1 + var(--selection) * .11)) drop-shadow(2px 3px 0 #223c2944);transition:filter .18s}
.road-stop-caption{position:absolute;top:23%;left:0;width:100%;height:29%;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:2px;text-align:center;color:#4c301d;text-shadow:0 1px 0 #ffe8af;padding:0 23px}
.road-stop-caption time{display:block;max-width:100%;white-space:nowrap;font:600 9px/1.2 var(--font);letter-spacing:0;font-variant-numeric:tabular-nums;color:#745032}
.road-stop-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;font:600 15px/1.08 var(--font);letter-spacing:.1px;overflow-wrap:anywhere;text-wrap:balance}
.road-stop-current-marker{display:none;position:absolute;top:7%;left:calc(50% - 6px);width:12px;height:12px;background:#ffd87e;clip-path:polygon(0 20%,20% 20%,20% 0,40% 0,50% 20%,60% 0,80% 0,80% 20%,100% 20%,100% 60%,50% 100%,0 60%);filter:drop-shadow(1px 1px 0 #704724)}
.road-stop.is-selected .road-stop-current-marker{display:block;z-index:2}
.road-stop.is-selected .road-stop-art{filter:brightness(calc(1 + var(--selection) * .11)) drop-shadow(0 0 4px #ffe4a777) drop-shadow(2px 3px 0 #223c2944)}
.road-stop-link:hover .road-stop-art,.road-stop-link:focus-visible .road-stop-art{filter:brightness(1.15) drop-shadow(2px 3px 0 #223c2955)}
.road-stop-link:focus-visible{outline:2px solid #fff0b7}
.journey-controls{position:absolute;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(780px,80vw);z-index:10;cursor:default}
.journey-progress-row{display:flex;align-items:flex-start;gap:18px}
.journey-step{flex:none;width:38px;height:36px;display:grid;place-items:center;padding:6px;border:2px solid #ffe0eb;border-radius:12px 14px 12px 14px;background:#fff0f5ed;color:#b54570;box-shadow:0 3px 0 #af547766,inset 0 1px 0 #fff9fc;transition:background .15s,transform .15s,box-shadow .15s}
.journey-step svg{width:20px;height:20px;fill:currentColor;shape-rendering:crispEdges}
.journey-step[data-journey-next] svg{transform:scaleX(-1)}
.journey-step:hover:not(:disabled){background:#ffd3e2;transform:translateY(-1px);box-shadow:0 4px 0 #af547766}
.journey-step:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #af547766}
.journey-step:disabled{opacity:.45;cursor:default}
.journey-progress-main{flex:1;min-width:0}
.journey-progress{--journey-progress:0%;--heart-thumb:url('/scene/heart-thumb-v1.svg');display:block;width:100%;height:36px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-x}
.journey-progress::-webkit-slider-runnable-track{box-sizing:border-box;height:6px;border:1px solid #fff0f5e6;border-radius:5px;background:linear-gradient(to right,#ef7b9f var(--journey-progress),#fbdce6 var(--journey-progress));box-shadow:0 2px 0 #91476155}
.journey-progress::-moz-range-track{box-sizing:border-box;height:6px;border:1px solid #fff0f5e6;border-radius:5px;background:#fbdce6;box-shadow:0 2px 0 #91476155}
.journey-progress::-moz-range-progress{height:6px;border-radius:5px;background:#ef7b9f}
.journey-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:30px;height:30px;margin-top:-13px;border:0;border-radius:0;background:var(--heart-thumb) center/contain no-repeat;box-shadow:none}
.journey-progress::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:0;background:var(--heart-thumb) center/contain no-repeat;box-shadow:none}
.journey-progress:disabled{cursor:default;opacity:.6}
.journey-progress-dates{display:flex;justify-content:space-between;gap:8px;letter-spacing:0;font-variant-numeric:tabular-nums}
.journey-date{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1px solid #ffd3e1cc;border-radius:7px;background:#fff0f4ed;color:#923e5e;font:600 11px/1.5 var(--font);box-shadow:0 2px 0 #85425840;text-shadow:none}
.journey-date time{white-space:nowrap}
.journey-date svg{width:13px;height:13px;flex:none;fill:#ed98b3;shape-rendering:crispEdges}
.journey-date .date-flower-center{fill:#ffe8a8}
.journey-ending{text-align:center;margin:14px 0 0;color:#fff0f5;font:12px/1.5 var(--serif);letter-spacing:1.5px}
.journey-empty{position:absolute;top:72%;width:100%;text-align:center;color:#fff9df;font-size:13px}
.is-journey :focus-visible{outline-color:#fffcdb}
.is-journey .journey-progress:focus-visible{outline:2px solid #ffd0e0;outline-offset:1px;border-radius:12px;background:#fff0f518}
.is-journey .journey-step:focus-visible{outline:2px solid #ffd0e0;outline-offset:4px}
@media(max-height:650px) and (min-width:600px){.journey-couple{height:43vh;width:32vw}.road-stop{--stop-width:160px}.road-stop-caption{padding:0 18px;gap:1px}.road-stop-title{font-size:12px}.road-stop-caption time{font-size:8px}.journey-controls{bottom:12px}.journey-ending{margin-top:10px}}
@media(max-width:600px){.journey-couple{width:76vw;height:37vh}.road-stop{--stop-width:184px}.road-stop-caption{padding:0 21px;gap:1px}.road-stop-title{font-size:14px}.road-stop-caption time{font-size:8px;letter-spacing:.3px}.journey-controls{width:90vw;bottom:max(22px,env(safe-area-inset-bottom))}.journey-progress-row{gap:10px}.journey-step{width:34px;height:34px;padding:5px;border-radius:11px}.journey-date{font-size:10px;padding:2px 6px;gap:3px}.journey-date svg{width:11px;height:11px}.journey-ending{font-size:11px;margin-top:16px}.journey-sky{background-position:45% center}}
@media(prefers-reduced-motion:reduce){.journey-couple-art{transform:none}.road-stop-art{transition:none}}

/* The sky stays as-is. Foreground scenery and independent avatars share one pixel grid. */
.journey-pixel-world{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.journey-pixel-couple{display:block;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.journey-progress-dates,.journey-ending{text-shadow:0 1px 3px #234d48}
.journey-couple{width:144px;height:auto;aspect-ratio:48/56;--journey-hop:0px}
@media(min-width:1500px) and (min-height:850px){.journey-couple{width:192px}}
@media(max-height:650px) and (min-width:600px){.journey-couple{width:96px;height:auto}}
@media(max-width:600px){.journey-couple{width:144px;height:auto}.journey-portrait{top:13vh;width:128vw;height:192vw}}

/* Fine texture pixels sit on real meshes; the viewport itself is full resolution. */
[data-scene-mode="webgl-3d"] .journey-pixel-world{image-rendering:auto}
[data-scene-mode="webgl-3d"] .journey-couple{display:none}
[data-scene-mode="webgl-3d"] .road-stop-dot{width:21px;height:21px;left:calc(50% - 10.5px);border-radius:50%;box-shadow:0 3px 7px #30462b55}
[data-scene-mode="webgl-3d"] .road-stop-caption{color:#28412d;text-shadow:0 1px 5px #f3efc9cc}
[data-scene-mode="webgl-3d"] .road-stop.is-current .road-stop-caption{color:#223c29}
[data-scene-mode="webgl-3d"] .journey-controls{padding:12px 18px 10px;background:#244b3638;border:1px solid #eef2c31c;border-radius:18px;backdrop-filter:blur(10px)}
@media(max-height:650px) and (min-width:600px){
  [data-scene-mode="webgl-3d"] .journey-controls{padding:5px 14px 4px}
  [data-scene-mode="webgl-3d"] .road-stop.is-current .road-stop-caption{top:32px}
  [data-scene-mode="webgl-3d"] .road-stop-title{font-size:15px;line-height:1.35;margin-top:3px}
  [data-scene-mode="webgl-3d"] .road-stop-caption time{font-size:10px;line-height:1.4}
}

/* Blue flower removes a date; pink flower continues to edit it. */
.road-stop-flower:not(.road-stop-delete-flower){left:calc(50% + 22px)}
.road-stop-delete-flower{left:calc(50% - 22px);color:#7ebde8;filter:drop-shadow(1px 2px 0 #3e6381)}
.road-stop-delete-flower:hover,.road-stop-delete-flower:focus-visible{color:#bce3ff}
.road-stop-flower:focus-visible{outline:2px dashed #fff3cf;outline-offset:1px;border-radius:50%}
