/* The canvas is only scenery. House order and the interactive mailbox are real HTML. */
:root{--road-panel:#21182bed}
.stage{background:linear-gradient(#635477,#241d32 72%,#1b1928)}
.stage::after{background:linear-gradient(0deg,#19102594,transparent 37%),linear-gradient(180deg,#17102799,transparent 14%);pointer-events:none}
#road-view{display:block;width:100%;height:100%}
.street-houses{list-style:none;padding:0;margin:0}
.street-stop{min-height:100svh;scroll-margin-top:0}
.entrance,.vacant,.resident,.turnaround{align-items:flex-end;justify-content:flex-start!important;padding-bottom:clamp(5rem,11svh,8rem)}
.road-note{max-width:22rem;padding:1.15rem 1.35rem;border:1px solid var(--border);border-radius:14px;background:var(--road-panel);box-shadow:0 10px 36px #17102492;pointer-events:auto}
.road-note h2{font-size:clamp(1.8rem,4.8vw,3.05rem);line-height:1.03;margin:0 0 .44rem}
.road-note>p:not(.overline){color:#f5e5d3}
.road-note .overline{letter-spacing:.13em}
.street-stop:nth-child(even).vacant{justify-content:flex-start!important}
.mailbox{display:flex;width:max-content;max-width:100%;flex-direction:column;align-items:center;margin:.75rem auto 0;text-decoration:none;border-radius:10px;pointer-events:auto;position:relative;isolation:isolate}
.mailbox-drawing{display:block;width:clamp(112px,18vw,190px);height:auto;overflow:visible;filter:drop-shadow(0 9px 9px #150b1bbb);transition:filter .18s ease}
.mailbox-label{display:block;background:#ffe0aa;color:#251631;border:1px solid #f7c987;border-radius:6px;padding:.58rem .78rem;line-height:1.22;font-size:.93rem;font-weight:800;min-height:44px;align-content:center;white-space:nowrap}
.mailbox:hover .mailbox-label{background:#fff0d5}
.mailbox:hover .mailbox-drawing,.mailbox:focus-visible .mailbox-drawing{filter:drop-shadow(0 2px 9px #ffd09699)}
.mailbox.road-anchored{grid-area:auto;position:fixed;margin:0;z-index:7;left:var(--mail-x);top:var(--mail-y);transform:translate(-50%,-84%)}
.resident:has(.road-anchored) .road-note{min-width:min(15.5rem,100%)}
body.list-view .street-stop{min-height:0;scroll-margin-top:65px}
body.list-view .road-note{max-width:100%}
body.list-view .mailbox{margin-left:0}
body.list-view .mast .house-link{display:none}
@media(max-width:650px){
 .entrance,.vacant,.resident,.turnaround{padding-bottom:4.55rem}
 .entrance-copy,.end-copy{width:100%}
 .road-note{padding:.78rem .95rem}
 .road-note .overline{margin-bottom:.3rem;font-size:.65rem}
 .road-note h2{margin-bottom:.25rem}
 .resident:has(.road-anchored) .road-note{min-width:0}
 .mailbox.road-anchored .mailbox-drawing{width:128px}
 .mailbox.road-anchored .mailbox-label{font-size:.8rem;padding:.52rem .55rem}
}
@media(prefers-reduced-motion:reduce){
 .mailbox-drawing{transition:none}
}


.skate-hint,.swipe-direction{display:none}
@media(pointer:coarse) {
 body:not(.list-view) .entrance-copy .skate-hint{display:block;margin:.55rem 0 0;color:#f9e4c6;line-height:1.4;font-size:.8rem;max-width:32ch}
 body:not(.list-view) .swipe-direction{display:inline-block;margin-top:.55rem}
}
/* Gestures and inertia are native; the camera moves less per screen of scroll. */
.skate-rail{margin-top:.45rem;min-height:44px;color:#ffe8d1;background:none;border:0;text-decoration:underline;text-underline-offset:4px;font:700 .8rem/1.2 system-ui;cursor:pointer;pointer-events:auto}
.list-view .skate-rail{display:none}
@media(prefers-reduced-motion:reduce){.skate-hint,.skate-rail{display:none!important}}
/* Deliberate jump links are immediate, not animated travel. */
html{scroll-behavior:auto}

/* On narrow phones, keep the street and list switch easy to reach. */
@media(max-width:395px){
 .mast nav a[href="#house-03"]{display:none}
}
#pa-mailbox + .skate-rail{margin-top:1rem}


/* Ride view leaves the art unobstructed. The accessible list keeps its text. */
body:not(.list-view) .stage::after{
 background:linear-gradient(180deg,#100a2058,transparent 13%);
}
body:not(.list-view) .street-stop{min-height:114svh}
body:not(.list-view) .entrance-copy,
body:not(.list-view) .end-copy,
body:not(.list-view) .road-note{
 background:none;border:0;box-shadow:none;padding:0;border-radius:0;
}
body:not(.list-view) .entrance-copy,body:not(.list-view) .end-copy,
body:not(.list-view) .road-note > :is(h2,p){
 position:absolute;width:1px;height:1px;overflow:hidden;
 clip-path:inset(50%);white-space:nowrap;
}
body:not(.list-view) :is(.entrance-copy,.end-copy):focus-within{
 clip-path:none;overflow:visible;width:auto;height:auto;white-space:normal;
 background:#151326;color:#fff0d6;padding:.65rem;border-radius:8px;
}
body:not(.list-view) .road-note{display:grid;justify-items:center;pointer-events:none}
body:not(.list-view) .mailbox{margin:0;text-shadow:0 1px 3px #09090d,0 2px 8px #09090d}
body:not(.list-view) .mailbox-label{
 background:none;border:0;color:#fff3da;min-height:32px;padding:.27rem .4rem;
}
body:not(.list-view) .mailbox:hover .mailbox-label{text-decoration:underline}
body:not(.list-view) .street-status{display:none}
@media(max-width:650px){
 .mast .house-link{display:none}
}
body.list-view .vacant{display:none}

.scene-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.terminal-homes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,1100px);align-items:end}
body:not(.list-view) #cul-de-sac{justify-content:center!important;padding-bottom:clamp(3.5rem,8svh,6rem)}
body:not(.list-view) .terminal-homes .resident{min-height:0;padding:0;justify-content:center!important}
body:not(.list-view) .terminal-homes .road-note{max-width:100%;min-width:0}
body:not(.list-view) .terminal-homes .mailbox-label{white-space:normal;text-align:center}
body:not(.list-view) .terminal-homes .mailbox-drawing{width:clamp(88px,15vw,150px)}
body.list-view .terminal-homes{display:block}
body.list-view #cul-de-sac{padding-bottom:0}
body.list-view .terminal-homes .resident{padding-bottom:1.7rem}


/* The road's in-flow surface receives the swipe; fixed scenery never does.
   The ride retains a real scroll area for wheel, keyboard and navigation. */
body:not(.list-view) #top{position:fixed;inset:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scroll-behavior:auto;touch-action:pan-y pinch-zoom}
/* Preserve pinch zoom; JavaScript handles only a one-thumb vertical stroke. */
body:not(.list-view) #top.thumb-ride{touch-action:pan-x pinch-zoom}
body:not(.list-view) #top:focus-visible{outline:2px solid #fad294;outline-offset:-2px}
body:not(.list-view) #top,
body:not(.list-view) #top > .street-houses,
body:not(.list-view) #top .street-stop{pointer-events:auto}
#road-view{pointer-events:none}

/* Optional street-only control; no overlay and no changes to list flow. */
#lean-ride:not([hidden]){appearance:none;background:none;border:0;color:inherit;font:inherit;font-size:.9rem;padding:0 0.12rem;min-height:44px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#lean-ride[aria-pressed="true"]{color:#ffdc9c}
#lean-ride:focus-visible{outline:2px solid #fad294;outline-offset:2px}
@media(max-width:650px){#lean-ride:not([hidden]){font-size:.8rem}}
@media(max-width:345px){#lean-ride:not([hidden]){font-size:.73rem}}

.neighborhood-mast{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1.25rem}
.neighborhood-mast .destination-nav{grid-column:1/-1;justify-content:center;gap:clamp(.5rem,3vw,1.65rem);flex-wrap:wrap}
.neighborhood-mast .destination-nav a{min-height:44px}
.neighborhood-mast .destination-nav a:first-child{color:#ffdc9c;font-weight:750}
#tree-notice-count:not([hidden]){display:inline-grid;place-items:center;min-width:1.35rem;height:1.35rem;margin-left:.3rem;border-radius:50%;background:#fad294;color:#171027;font-size:.72rem;font-weight:900}
#street-house-links{position:fixed;inset:0;z-index:6;pointer-events:none}
#street-house-links .street-house{pointer-events:auto;max-width:min(12rem,44vw);overflow:hidden;text-overflow:ellipsis}
.shared-house-list{margin:.6rem 0 0;padding-left:1.2rem}.shared-house-list a{min-height:44px}
body:not(.list-view) :is(#shared-houses-status,.shared-house-list){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:360px){.neighborhood-mast{column-gap:.45rem}.neighborhood-mast .destination-nav a{font-size:.77rem}}

/* The ten stops are building elevations, not floating cards. */
body:not(.list-view) .street-stop{min-height:70svh}
body:not(.list-view) .entrance{min-height:88svh}
body:not(.list-view) .fixture-stop{padding:0 clamp(1rem,8vw,9rem) 13svh}
body:not(.list-view) .fixture-stop.left{justify-content:flex-start!important}
body:not(.list-view) .fixture-stop.right{justify-content:flex-end!important}
.fixture-link{width:max-content;max-width:100%;min-height:44px}
.fixture-letter{display:grid;place-items:center;border:1px solid #e4b77f;border-radius:11px 11px 3px 3px;background:#244a47;color:#fff1d4;min-width:47px;min-height:44px;font:700 .9rem system-ui;box-shadow:0 4px 15px #151423}
body:not(.list-view) .fixture-link .mailbox-label{background:#151727e8;border:1px solid #c09871;color:#fff5de;white-space:normal;text-align:center;max-width:min(44vw,15rem)}
body.list-view .fixture-stop{padding:.6rem 0 .2rem}
body:not(.list-view) .bulletin-stop{min-height:100svh;justify-content:center!important}
.bulletin-board{max-width:26rem;padding:1rem 1.2rem;background:#241b28ed;border:3px double #b18a64;border-radius:.5rem;color:#fff2d9;pointer-events:auto}
.bulletin-board h2{margin:.25rem 0}
.bulletin-board :is(a,button),#roll-toggle:not([hidden]){appearance:none;min-height:44px;padding:.25rem .5rem;border:1px solid #be9a72;border-radius:6px;color:#fff2d9;background:#322538;font:inherit;text-decoration:none;cursor:pointer}
.bulletin-board a{display:inline-flex;align-items:center}
#roll-toggle[hidden],#roll-back[hidden]{display:none}
