@font-face{font-family:LocalSerif;src:local("Noto Serif"),local("Georgia");font-display:swap}
:root{--ink:#293d34;--paper:#f5f0e5;--accent:#a77e43;--line:#344c3526;--sans:"Noto Sans JP",system-ui,sans-serif;--serif:LocalSerif,"Noto Serif JP",Georgia,serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#e3decb;color:var(--ink);font-family:var(--sans);font-size:12px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible{outline:2px solid #ae7132;outline-offset:4px}a{color:inherit;text-decoration:none}button:hover{color:#a16b2f}#scene{position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#eee8dbd0 0,#eee8db8a 58px,#eee8db2e 104px,transparent 150px,transparent 62%,#152b2538 100%)}header{position:fixed;top:0;left:0;width:100%;height:104px;padding:28px 34px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}header>*{pointer-events:auto}
header .back,header .brand,header .header-actions button{text-shadow:0 0 10px #f5f0e5,0 0 3px #f5f0e5cc}.back{font-size:10px;letter-spacing:.22em;display:flex;gap:9px;align-items:center}.brand{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:14px;align-items:center}.brand h1{font-family:var(--serif);font-size:28px;font-weight:400;letter-spacing:.22em;line-height:1.1;margin:0}.brand p{font-size:8px;letter-spacing:.35em;margin:8px 0 0}.ornament{font-size:40px;color:#a27e47}.header-actions{display:flex;gap:8px;align-items:center}.header-actions button{width:32px;height:32px;font-size:12px}.header-actions #helpButton{border:1px solid #53614e60;border-radius:50%;width:25px;height:25px;margin-left:9px}#explorer{position:fixed;top:124px;left:30px;width:220px;max-height:calc(100dvh - 230px);overflow-y:auto;background:#f6f2e8ed;backdrop-filter:blur(14px);padding:22px 19px 16px;border:1px solid #fff8;box-shadow:0 10px 50px #102b2410;scrollbar-width:thin;scrollbar-color:#b5b4a3 transparent}.section-title{display:flex;justify-content:space-between;gap:6px;font-size:11px;letter-spacing:.12em;border-bottom:1px solid var(--line);padding-bottom:14px}.section-title>span:last-child{font-size:8px;letter-spacing:.1em;color:#7c8575}.place-group{font-size:9px;text-transform:uppercase;letter-spacing:.19em;color:#8c887a;margin:18px 0 8px}.place{width:100%;display:flex;align-items:center;text-align:left;padding:8px 0;gap:10px;line-height:1.45;font-size:11px}.place .num{font-family:var(--serif);font-size:10px;color:#929784;min-width:18px}.place.active{color:#915d27}.place.active .num{color:#915d27}.place.active:after{content:"";width:4px;height:4px;background:#a77e43;border-radius:50%;margin-left:auto;flex:none}.sources{display:block;border-top:1px solid var(--line);padding-top:16px;margin-top:18px;color:#7c8175;font-size:9px;letter-spacing:.04em}#caption{position:fixed;left:284px;bottom:112px;max-width:535px;color:#fffdf2;text-shadow:0 2px 16px #11291de0;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:.16em;display:flex;gap:11px;align-items:center;text-transform:uppercase}.line{display:block;width:34px;height:1px;background:currentColor;opacity:.65}#caption h2{font-family:var(--serif);font-weight:400;font-size:31px;letter-spacing:.09em;margin:13px 0 12px}#caption p{font-size:11px;line-height:1.9;max-width:440px;letter-spacing:.025em;margin:0;opacity:.95}#mapBox{position:fixed;right:28px;bottom:109px;width:227px;background:#f5f0e6eb;backdrop-filter:blur(10px);border:1px solid #fff9;padding:12px 14px 9px;transition:width .2s}.map-heading{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.15em}.map-heading button{font-size:14px}#map{width:100%;display:block;margin:0;cursor:crosshair}.map-note{font-size:8px;color:#828774}.map-expanded #mapBox{width:min(650px,calc(100vw - 60px));bottom:115px}.map-expanded .map-note{font-size:11px}footer{position:fixed;bottom:25px;left:30px;right:30px;min-height:56px;background:#f7f3e9f2;border:1px solid #ffffffa0;display:flex;align-items:center;gap:22px;padding:10px 14px;backdrop-filter:blur(15px);box-shadow:0 4px 40px #10251c14}.modes{display:flex;border:1px solid #596c4c35;padding:3px;flex:none}.modes button{padding:7px 18px;font-size:10px}.modes .active{background:#24463b;color:#f3eddf}.control-hint{font-size:9px;color:#767f70;letter-spacing:.08em}.footer-actions{margin-left:auto;display:flex;align-items:center;gap:19px;font-size:10px;white-space:nowrap}#tour[aria-pressed=true]{color:#ab6730}#tourProgress{position:fixed;bottom:24px;left:30px;right:30px;height:2px;opacity:0;pointer-events:none}#tourProgress>div{height:100%;width:0;background:#ae8046}body.touring #tourProgress{opacity:1}#loading{position:fixed;inset:0;z-index:20;background:#f0ebdf;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .6s}.load-star{font-size:58px;color:#a28148;animation:breathe 2s ease-in-out infinite}#loading h2{font:400 32px var(--serif);letter-spacing:.25em;margin:18px 0}#loading p{font-size:10px;letter-spacing:.12em}.load-line{width:140px;height:1px;background:#d6cdb7;margin:20px}.load-line i{display:block;width:40%;height:100%;background:#a78550;animation:load 1.4s ease-in-out infinite}#loading.done{opacity:0;pointer-events:none}@keyframes load{50%{transform:translateX(150%)}}@keyframes breathe{50%{opacity:.35;transform:rotate(45deg)}}#toast{position:fixed;top:104px;left:50%;transform:translateX(-50%);padding:10px 20px;background:#243e35e6;color:#fff7e8;opacity:0;transition:opacity .2s;pointer-events:none;z-index:4;font-size:11px}#toast.visible{opacity:1}dialog{border:1px solid #ded6c3;background:#f5f0e5;color:#344638;max-width:520px;width:calc(100% - 36px);padding:38px 40px;box-shadow:0 10px 90px #1238}dialog::backdrop{background:#15322a70;backdrop-filter:blur(6px)}dialog .close{position:absolute;top:12px;right:15px;font-size:24px}dialog h2{font:400 26px var(--serif);margin:16px 0}dialog p{font-size:12px;line-height:1.9}dialog dl{display:grid;grid-template-columns:1.1fr 1fr;gap:15px 10px;font-size:11px;margin:25px 0}dialog dd{margin:0;color:#7a8270}dialog dt{font-size:10px}dialog .fine{font-size:10px;color:#7c8272}dialog a{font-size:11px;text-decoration:underline;text-underline-offset:4px}.mobile-toggle,#restoreUI{display:none}.hide-ui header,.hide-ui #explorer,.hide-ui #caption,.hide-ui #mapBox,.hide-ui footer,.hide-ui #placesToggle,.hide-ui #tourProgress{display:none}.hide-ui #restoreUI{display:block;position:fixed;right:25px;bottom:25px;background:#f5f0e6c0;padding:10px;font-size:20px}.fatal{position:fixed;inset:0;z-index:40;background:#f4efdf;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;gap:20px;font-size:15px;text-align:center}.fatal a{text-decoration:underline}.fatal button{border:1px solid #85917b;padding:12px 24px}
@media(max-width:1100px){#explorer{width:195px;left:20px;padding:18px 14px}#caption{left:240px;max-width:400px;bottom:110px}#caption p{max-width:330px}#mapBox{width:190px;right:20px}.control-hint{display:none}footer{left:20px;right:20px}.footer-actions{gap:16px}#caption h2{font-size:26px}}
@media(max-width:760px){header{height:82px;padding:20px}.brand h1{font-size:20px}.brand p{font-size:6px;letter-spacing:.22em}.ornament{font-size:28px}.brand{gap:7px}.back{font-size:9px}.back span{display:none}.header-actions{gap:2px}.header-actions button{width:25px}.header-actions #helpButton{margin-left:3px;width:21px;height:21px;font-size:10px}#explorer{display:none;top:116px;left:15px;max-height:calc(100dvh - 220px);width:235px;z-index:5}.places-open #explorer{display:block}.mobile-toggle{display:block;position:fixed;top:88px;left:16px;background:#f5f0e6df;padding:11px 14px;font-size:10px;backdrop-filter:blur(8px)}#caption{left:20px;right:20px;bottom:162px;max-width:calc(100% - 45px)}#caption h2{font-size:24px;margin:9px 0}#caption p{max-width:420px;font-size:10px;line-height:1.7}.eyebrow{font-size:7px}#mapBox{right:15px;bottom:auto;top:87px;width:150px;padding:7px 9px}.map-note{font-size:6px}.map-heading{font-size:7px}.map-expanded #mapBox{width:calc(100% - 30px);top:135px;bottom:auto;z-index:6}footer{left:14px;right:14px;bottom:16px;min-height:47px;padding:6px 8px;gap:8px}.modes button{padding:7px 10px;font-size:9px}.footer-actions{gap:10px;font-size:9px}#quality{display:none}#uiToggle{font-size:17px}.footer-actions #tour{font-size:8px}#tourProgress{bottom:15px;left:14px;right:14px}#toast{top:55px;font-size:9px;max-width:85%;width:max-content}dialog{padding:30px 23px}dialog h2{font-size:22px}body[data-touch=true] #caption{bottom:161px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Local reference photographs, opened from the place title. */
#referenceOpen{pointer-events:auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:0;text-align:left;letter-spacing:inherit;text-shadow:inherit;color:inherit;max-width:100%}
#placeTitle{text-decoration:underline;text-decoration-color:#fff6;text-decoration-thickness:1px;text-underline-offset:7px}
#referenceOpen:hover #placeTitle{text-decoration-color:currentColor}
.photo-hint{display:inline-flex;align-items:center;gap:6px;font:10px var(--sans);letter-spacing:.06em;white-space:nowrap;background:#17372a59;border:1px solid #fff5;padding:7px 9px;text-shadow:0 1px 6px #163827;border-radius:2px}
#referenceOpen:hover .photo-hint{background:#17372a99}
#references{max-width:1100px;width:calc(100% - 48px);max-height:calc(100dvh - 40px);padding:0;overflow-y:auto;overscroll-behavior:contain}
#references::backdrop{background:#12291fbc;backdrop-filter:blur(10px)}
.reference-heading{padding:26px 70px 20px 30px}
.reference-heading .eyebrow{color:#8f733f;font-size:9px;letter-spacing:.14em}
#references h2{font-size:27px;margin:10px 0 6px;letter-spacing:.04em}
#referenceSpanish{margin:0;font-size:10px;letter-spacing:.09em;color:#7a8270}
#referenceClose{top:18px;right:18px;width:40px;height:40px;border:1px solid #344c3526;line-height:1}
.reference-stage{position:relative;height:min(56dvh,calc(100dvh - 330px));min-height:200px;max-height:620px;background:#192b24;overflow:hidden}
#referenceFrame{width:100%;height:100%}
#referenceImage{display:block;width:100%;height:100%;object-fit:contain;opacity:0}
.reference-stage[data-state=ready] #referenceImage{opacity:1}
#referenceStatus{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:35px;color:#f1ead9;font-size:12px;line-height:1.9;text-align:center;pointer-events:none}
.reference-stage[data-state=ready] #referenceStatus{display:none}
.reference-details{padding:16px 30px 20px}
.reference-caption{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:36px}
#referenceCaption{font-size:14px;font-weight:500;line-height:1.7;margin:0}
.reference-navigation{display:flex;align-items:center;gap:9px;flex-shrink:0}
.reference-navigation button{width:38px;height:36px;border:1px solid #344c3535;font-size:18px}
.reference-navigation button:hover{background:#e6dfcc}
#referenceCounter{min-width:35px;text-align:center;font-size:10px;letter-spacing:.08em;color:#7a8270}
#references .reference-attribution{font-size:10px;line-height:1.9;margin:9px 0 0;color:#6b7568;overflow-wrap:anywhere}
#references .reference-attribution a{font-size:inherit;text-underline-offset:3px}
#referenceSource{display:inline-block;margin-left:16px;color:#7f5c2d}
#references .reference-note{font-size:10px;color:#818775;border-top:1px solid #344c351c;padding-top:12px;margin:12px 0 0}
#references [hidden]{display:none}
@media(max-width:760px){
  #referenceOpen{gap:10px 12px}.photo-hint{font-size:9px;padding:6px 8px}
  #references{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
  .reference-heading{padding:20px 58px 16px 20px}#references h2{font-size:22px;line-height:1.5}
  #referenceClose{right:12px;top:12px;width:36px;height:36px}.reference-heading .eyebrow{font-size:8px}
  .reference-stage{height:clamp(220px,49dvh,540px)}.reference-details{padding:12px 18px 16px}
  #referenceCaption{font-size:12px}.reference-caption{gap:12px}.reference-navigation{gap:4px}
  .reference-navigation button{width:34px;height:36px}#referenceCounter{font-size:9px;min-width:31px}
  #referenceSource{margin:6px 0 0;display:block;width:max-content}#references .reference-note{font-size:9px}
}

.hide-ui .vignette{display:none}

/* Compact music controls, independent of water ambience. */
#musicPanel{position:fixed;z-index:30;right:34px;top:86px;width:280px;max-width:calc(100vw - 24px);padding:24px;background:#f6f2e8f5;border:1px solid #fff9;box-shadow:0 12px 45px #102b2426;backdrop-filter:blur(14px)}
#musicPanel[hidden]{display:none}#musicPanel h2{font-family:var(--serif);font-size:23px;font-weight:400;margin:12px 0 8px}#musicPanel p{font-size:10px;color:#6b7568;margin:0 0 18px}
#musicClose{position:absolute;right:8px;top:7px;width:36px;height:36px;font-size:24px}
#musicPlay{width:100%;min-height:42px;border:1px solid var(--line);background:#e6dfcc60;text-align:center}#musicPlay[aria-pressed=true]{background:#29483d;color:#fff8e6}
.music-volume{display:flex;align-items:center;gap:10px;margin:18px 0}.music-volume label{font-size:11px}.music-volume input{min-width:0;flex:1;accent-color:#986b35;height:28px}.music-volume output{font-size:10px;width:32px;text-align:right}
#musicPanel>a{font-size:10px;text-decoration:underline;text-underline-offset:3px;color:#7f5c2d}#musicToggle.playing{color:#915d27;background:#d7c79f70;border-radius:50%}
.hide-ui #musicPanel{display:none}
@media(max-width:760px){#musicPanel{right:12px;top:76px}.header-actions{gap:3px}.header-actions button{width:29px}}
@media(max-width:480px){.brand{left:60px;transform:none;gap:0}.brand .ornament{display:none}.brand h1{font-size:17px;letter-spacing:.12em}.brand p{font-size:6px;letter-spacing:.2em}.header-actions #helpButton{margin-left:2px}}

/* Highlights stay collapsed until requested; the toggle sits in the footer beside the movement modes
   and the list opens upwards from it. The caption makes way while the list is open. */
#explorer{display:none;top:auto;bottom:100px;left:30px;max-height:calc(100dvh - 230px);z-index:5}
.places-open #explorer{display:block}
.places-open #caption{opacity:0;visibility:hidden}
#placesToggle{flex:none;border:1px solid #596c4c35;padding:10px 16px;font-size:10px;margin-left:-12px}
#placesToggle[aria-expanded=true]{background:#24463b;color:#f3eddf}
body:not(.places-open) #caption{left:30px}
.hide-ui #explorer{display:none}
@media(max-width:1100px){#explorer{left:20px}}
@media(max-width:760px){#explorer{left:14px;bottom:76px;max-height:calc(100dvh - 180px)}
#placesToggle{padding:9px 10px;font-size:9px;margin-left:-4px}
body:not(.places-open) #caption{left:20px}
}

/* touch: shared/move's stick and ▲▼ (touch.js) sit above the footer; the caption and the map clear them */
body{--tc-bottom:calc(84px + env(safe-area-inset-bottom));--tc-line:#ffffffa0;--tc-pad:#f7f3e540;--tc-knob:#eee9d9d0;--tc-bg:#f5f0e6c0;--tc-ink:#24493f;--tc-on:#dfe8d9}body.hide-ui{--tc-bottom:calc(25px + env(safe-area-inset-bottom))}
@media(max-width:760px){body:not(.hide-ui){--tc-bottom:calc(74px + env(safe-area-inset-bottom))}body[data-touch=true] #caption{bottom:calc(var(--tc-bottom) + 122px)}}
@media(max-height:500px){body[data-touch=true] #caption{bottom:calc(var(--tc-bottom) + 100px)}body[data-touch=true] #caption p{display:none}body[data-touch=true] #mapBox{bottom:auto;top:96px;transform:scale(.72);transform-origin:top right}}
