/* MVP: adapted from the approved rev3 walnut desk and sugoroku board. */
[data-scene="profile"] { padding:0; min-height:0; background-color:#5a4535; background-image:repeating-linear-gradient(93deg,#0000 0 14px,#ffffff08 14px 15px,#0000 15px 37px,#00000014 37px 39px),repeating-linear-gradient(90deg,#0000 0 120px,#00000010 120px 160px); }
[data-scene="profile"] [data-scene-content] { width:min(100%,390px); aspect-ratio:390/1150; }
[data-scene="profile"] [data-scene-content] > :not([data-career-path]) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
[data-scene="profile"] [data-career-path] { position:absolute; inset:0; margin:0; padding:0; list-style:none; }
[data-scene="profile"] [data-career-stop] { position:absolute; z-index:3; padding:7px 10px; background:#f7f1e3; border:1px solid #cdbf9f; border-radius:3px; color:#2f2a20; box-shadow:0 3px 0 #0000001f; transform:rotate(-1deg); transition:transform .35s cubic-bezier(.2,.8,.3,1),box-shadow .35s; }
[data-scene="profile"] [data-career-stop] h3 { margin:0 0 3px; font-size:10.5px; letter-spacing:.14em; color:#7a6a4a; }
[data-scene="profile"] [data-career-stop] p { margin:0; font-size:clamp(11px,3.2vw,12.5px); line-height:1.5; }
[data-scene="profile"] [data-career-stop] {
  box-shadow:0 2px #bca889,0 4px 2px #3e29152b;
}
[data-scene="profile"] [data-career-stop]::before,
[data-scene="profile"] [data-career-stop]::after {
  content:"";
  position:absolute;
  bottom:-8px;
  width:4px;
  height:8px;
  border-radius:0 0 1px 1px;
  background:#9a7959;
  pointer-events:none;
}
[data-scene="profile"] [data-career-stop]::before{left:19%}
[data-scene="profile"] [data-career-stop]::after{right:19%}
html[data-pager="horizontal"] [data-sign-pending]{opacity:0}
html[data-pager="horizontal"] #profile .profile-building{scale:1.22}
html[data-pager="horizontal"] #profile .profile-building--town{width:27.5%;height:5.3%;transform-origin:left top}
html[data-pager="horizontal"] #profile :is(.profile-building--hospital,.profile-building--clinic){height:5.2%;transform-origin:right top}
html[data-pager="horizontal"] #profile .profile-building--hall{transform-origin:left top}
html[data-pager="horizontal"] #profile [data-roadside="post"]{left:83%}
html[data-pager="horizontal"] #profile .profile-roadside img{scale:1.10}
[data-scene="profile"] [data-peg-confetti] rect { opacity:0; pointer-events:none; }
[data-scene="profile"] [data-career-stop="origin"] { top:14.8%; left:10.25%; width:43.6%; }
[data-scene="profile"] [data-career-stop="hospital"] { top:43.5%; left:38.46%; width:48.7%; rotate:1.5deg; }
[data-scene="profile"] [data-career-stop="present"] { top:73%; left:10.25%; width:48.7%; rotate:-.5deg; }
[data-scene="profile"] [data-career-stop="community"] { top:87.5%; left:10.25%; width:51.3%; rotate:1deg; }
[data-scene="profile"] [data-career-stop][data-current="true"] { transform:translateY(-4px) rotate(0) scale(1.035); border-color:#2148a6; box-shadow:-3px 0 #2148a6,0 10px 16px -8px #000a; }
[data-scene="profile"] [data-scene-mount] { overflow:hidden; z-index:auto; }
[data-scene="profile"] .profile-world { position:absolute; inset-inline:0; top:18px; margin-inline:auto; width:min(100%,390px); aspect-ratio:390/1150; }
[data-scene="profile"] .profile-paper { position:absolute; z-index:0; left:3.07%; right:3.07%; top:0; height:100%; background:#7d9a86; box-shadow:inset 0 0 0 6px #6c8975,inset 0 0 0 8px #e9dfc6,0 18px 30px -10px #0009; border-radius:4px; transform:rotate(-.6deg); }
[data-scene="profile"] .profile-paper > img { width:100%; height:100%; object-fit:contain; }
[data-scene="profile"] .profile-paper::after { content:"";position:absolute;inset:0;border-radius:inherit;background:url('../assets/rich/paper-grain.svg');opacity:.7;pointer-events:none; }
[data-scene="profile"] .profile-route { position:absolute; z-index:2; left:3.07%; top:0; width:93.85%; height:100%; overflow:visible; }
[data-scene="profile"] .profile-route path { fill:none; stroke:none; }
.profile-goal-art{position:absolute;left:22%;top:76.6%;width:12.5%;visibility:hidden}
.profile-goal-art img{display:block;width:100%;height:auto}
.profile-goal-art[data-rich-loaded="true"]{visibility:visible}
.profile-goal-art[data-rich-loaded="true"] ~ .profile-route .profile-goal-fallback{visibility:hidden}
[data-scene="profile"] .profile-dice { position:absolute; width:12%; right:9%; top:25%; rotate:14deg; filter:drop-shadow(2px 4px 2px #0004); }
[data-scene="profile"] .profile-dice + .profile-dice { width:10%; right:16%; top:28.5%; rotate:-8deg; }
[data-scene="profile"] .profile-world::after { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 18% 0%,#ffdca844,#0000 45%),radial-gradient(ellipse at 50% 50%,#0000 58%,#1a120a44 100%); }
@media (min-width:900px) { [data-scene="profile"] { padding-block:3rem calc(var(--nav-height) + 3rem); } [data-scene="profile"] .profile-world { top:3rem; } }

#profile :is([data-roadside="tree"],[data-roadside="flowers"]){transform-origin:50% 100%;animation:profile-sway var(--idle-length) ease-in-out infinite}
#profile [data-roadside="tree"]{--idle-length:3.5s;--idle-angle:2deg}
#profile [data-roadside="flowers"]{--idle-length:2.8s;--idle-angle:3deg;animation-delay:-1.3s}
#profile [data-roadside="cat"]{transform-origin:50% 100%;animation:profile-breathe 3s ease-in-out -1.1s infinite}
#profile [data-roadside="stream"]{animation:profile-stream 2.5s ease-in-out -.7s infinite}
#profile [data-roadside="bike"]{animation:profile-bike 7s ease-in-out -3.8s infinite}
#profile [data-roadside]{animation-play-state:paused}
html[data-pager="horizontal"] #profile[data-visible="true"]:not([data-idle-hidden]) [data-roadside][data-idle-visible]{animation-play-state:running}
html:not([data-pager="horizontal"]) #profile [data-roadside]{animation:none}
@keyframes profile-sway{0%,100%{rotate:calc(var(--idle-angle) * -1)}50%{rotate:var(--idle-angle)}}
@keyframes profile-breathe{50%{scale:1 1.03}}
@keyframes profile-stream{50%{translate:1px 0}}
@keyframes profile-bike{86%,100%{translate:0 0}93%{translate:3px 0}}
