*{box-sizing:border-box}body{margin:0;background:#203b43;color:#fff8e9;font:15px/1.5 system-ui,sans-serif;overflow:hidden}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:absolute;top:30px;left:36px;pointer-events:none;text-shadow:0 2px 18px #19373a}h1{font:42px/1.1 Georgia,serif;margin:9px 0}h1 span{font-size:23px;color:#f4cf88;margin-left:15px}header p{margin:10px 0;font-size:14px;color:#e0e4db}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.5px;color:#e8cc96}.top-actions{position:absolute;right:30px;top:35px;display:flex;gap:8px}button,select,input{font:inherit}button{min-height:46px;border:1px solid #ffffff35;background:#213e43e8;color:#fff8e9;border-radius:9px;padding:10px 18px;cursor:pointer;backdrop-filter:blur(12px)}button:hover{background:#426167}button:focus-visible{outline:3px solid #ffd38a;outline-offset:3px}#today,#enter,#return{background:#f2d5a2;color:#273b3e;border:0;font-weight:650}aside{position:absolute;right:30px;top:95px;width:300px;background:#20393df5;padding:24px;border:1px solid #ffffff30;border-radius:15px;max-height:70vh;overflow:auto}h2{font:27px/1.2 Georgia,serif;margin:0 0 14px}aside label{display:flex;justify-content:space-between;align-items:center;margin:15px 0}select,input{max-width:165px;background:#fff5e7;border:0;border-radius:5px;padding:8px;color:#20393d}aside p{color:#c4d3d0;font-size:12px}#grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}#grid button{padding:7px}#entry{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);background:#20393df5;border:1px solid #ffffff30;border-radius:16px;width:min(390px,90vw);padding:26px;text-align:center;box-shadow:0 12px 50px #10292d55}#entry h2{margin:10px 0}#entry p{color:#d3ded8}.close{position:absolute;right:8px;top:8px;padding:0;width:40px;min-height:40px;border:0;background:none;font-size:23px}#enter{width:100%}#enter:disabled{background:#506366;color:#d8dfda;cursor:default}footer{position:absolute;bottom:22px;left:36px;right:30px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#e4e8df}#joystick{display:none;position:absolute;left:30px;bottom:90px;width:116px;height:116px;border:1px solid #fff6;border-radius:50%;background:#ffffff13;touch-action:none}#stick{width:48px;height:48px;position:absolute;top:33px;left:33px;border-radius:50%;background:#f4e6cbab;pointer-events:none}dialog{color:#fff8e9;background:#203b43;border:1px solid #ffffff40;border-radius:20px;max-width:440px;padding:40px;text-align:center}dialog::backdrop{background:#142e38b8;backdrop-filter:blur(8px)}dialog h2{margin-top:16px}dialog p{color:#d4ded8}#loading{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#203b43}#loading[hidden]{display:none}
#loading .loading-card{text-align:center;max-width:min(380px,86vw);padding:0 16px}#loading .loading-star{font-size:30px;color:#f4cf88;animation:loading-twinkle 2.4s ease-in-out infinite}#loading .loading-title{font:28px/1.2 Georgia,serif;margin:10px 0 6px}#loading #loading-step{margin:0 0 16px;color:#e0e4db;font-size:15px;min-height:1.5em}#loading .loading-bar{height:6px;border-radius:3px;background:#ffffff22;overflow:hidden}#loading #loading-bar{display:block;height:100%;width:4%;background:#f4cf88;border-radius:3px;transition:width .6s ease}#loading .loading-note{margin:14px 0 0;font-size:13px;color:#c4cdc6}@keyframes loading-twinkle{0%,100%{opacity:.55;transform:scale(.92)}50%{opacity:1;transform:scale(1.08)}}@media(prefers-reduced-motion:reduce){#loading .loading-star{animation:none}#loading #loading-bar{transition:none}}[hidden]{display:none!important}@media(pointer:coarse){#joystick{display:block}#hint{max-width:180px}}@media(max-width:700px){header{left:20px;top:18px}h1{font-size:32px}header p{font-size:12px}.top-actions{top:140px;left:20px;right:auto;gap:6px}.top-actions button{padding:8px 12px;font-size:12px}aside{top:198px;right:20px;width:calc(100% - 40px);max-height:50vh}footer{left:20px;right:20px;bottom:16px}#entry{bottom:225px;padding:20px}#joystick{left:25px;bottom:80px}footer button{font-size:12px;padding:8px 12px}}
#weather-credit{position:absolute;left:36px;bottom:76px;max-width:65vw;font-size:10px;color:#e1e8e7;background:#203b4388;padding:4px 8px;border-radius:5px}#weather-credit a{color:inherit}@media(max-width:700px){#weather-credit{left:20px;bottom:65px;max-width:calc(100vw - 40px);font-size:9px}}
.panel-close{position:absolute;top:6px;right:6px;width:48px;height:48px;min-height:48px;padding:0;font-size:28px;line-height:1;background:transparent;border:0;display:grid;place-items:center}.panel-close:hover{background:#ffffff18}aside h2{padding-right:35px}.close{width:48px;min-height:48px}
@media(min-width:701px) and (max-width:850px){h1{font-size:36px}.top-actions{top:140px;left:36px;right:auto}.top-actions button{font-size:12px;padding:8px 12px}}
body.facing-origin header{color:#3a515a;text-shadow:none}body.facing-origin header p{color:#536773}body.facing-origin #hint{color:#3a515a}
.walk-actions{display:flex;gap:8px}#stop-journey{background:#f2d5a2;color:#273b3e}#exploration-note{position:absolute;top:155px;left:36px;font-size:11px;letter-spacing:.4px;color:#e6e6d9;background:#203b4388;border:1px solid #ffffff25;border-radius:20px;padding:6px 12px;pointer-events:none}@media(max-width:850px){#exploration-note{top:204px;left:20px;font-size:10px}footer{gap:10px}#hint{max-width:40vw}}
#sound-toggle{position:absolute;right:30px;bottom:84px;min-width:128px;min-height:48px;font-size:13px;z-index:3}#sound-toggle[aria-pressed=true]{border-color:#e4ca8c;background:#304e48}#cancel-entry{background:#f2d5a2;color:#273b3e}@media(max-width:700px){#sound-toggle{right:20px;bottom:90px;min-width:115px}#weather-credit{max-width:calc(100vw - 40px)}}

aside #cottage-view,aside #square-view,aside #moment-view,aside #reset{width:100%;margin-top:7px}

#neighbour-chat{position:absolute;z-index:5;right:30px;bottom:145px;width:min(430px,calc(100vw - 40px));max-height:64vh;overflow:auto;padding:25px;background:#20393df7;border:1px solid #d6bd8055;border-radius:18px;box-shadow:0 14px 60px #10292d66}#neighbour-chat h2{margin:9px 35px 2px 0}#neighbour-role{font-size:12px;color:#d7c59f;margin:0 0 12px}#chat-history{max-height:23vh;overflow:auto}#chat-history p{padding:9px 12px;margin:8px 0;background:#ffffff0d;border-radius:9px;font-size:14px}#chat-history .visitor{background:#f2d5a223;color:#ffe6b7;margin-left:24px}.chat-topics{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.chat-topics button{padding:7px 10px;min-height:40px;font-size:12px}#chat-form label{display:block;font-size:12px;margin-bottom:5px}.chat-compose{display:flex;gap:7px}.chat-compose input{min-width:0;max-width:none;flex:1}.chat-compose button{padding:8px 12px;background:#f2d5a2;color:#273b3e}aside #estate-view{width:100%;margin-top:7px}@media(max-width:700px){#neighbour-chat{right:20px;bottom:148px;max-height:55vh;padding:20px}#chat-history{max-height:18vh}.chat-topics button{font-size:11px}}

#biscuit-controls{position:absolute;left:36px;bottom:112px;z-index:3;max-width:300px}#biscuit-controls>div{display:flex;gap:6px}#biscuit-controls button{font-size:12px;min-height:42px;padding:8px 12px}#biscuit-pet:not(:disabled){background:#f2d5a2;color:#273b3e}#biscuit-pet:disabled{opacity:.55;cursor:default}#biscuit-status{display:block;margin-top:5px;font-size:11px;color:#fff2d9;text-shadow:0 1px 5px #122d31;background:#203b4388;padding:3px 7px;border-radius:5px}@media(max-width:700px){#biscuit-controls{left:auto;right:20px;bottom:150px;max-width:215px}#biscuit-controls button{font-size:11px;padding:7px 9px}#biscuit-status{font-size:10px}}

#shirley-thought{position:absolute;z-index:2;pointer-events:none;max-width:min(260px,70vw);width:max-content;transform:translate(-50%,-100%);background:#fff4dfed;color:#3a403b;border:1px solid #c6ae88;border-radius:22px;padding:12px 17px;box-shadow:0 5px 22px #142e3840;font:italic 14px/1.45 Georgia,serif;text-align:center}#shirley-thought:after,#shirley-thought:before{content:'';position:absolute;background:#fff4dfed;border:1px solid #c6ae88;border-radius:50%;bottom:-12px;left:58%;width:12px;height:12px}#shirley-thought:before{bottom:-22px;left:55%;width:6px;height:6px}@media(max-width:700px){#shirley-thought{font-size:13px;padding:10px 14px;max-width:210px}}

.chat-more{font-size:12px;color:#ecd8b3;margin:8px 0 12px}.chat-more summary{cursor:pointer;padding:7px 0}.chat-more .chat-topics{max-height:115px;overflow:auto;margin:5px 0}.chat-more[open]~#chat-form{margin-top:10px}#neighbour-chat:has(.chat-more[open]) #chat-history{max-height:12vh}

.compact-label{display:none}#shirley-menu{position:absolute;left:36px;bottom:112px;z-index:3}#shirley-menu>summary,#weather-details>summary{display:none}#shirley-menu #biscuit-controls{position:static;max-width:300px}#weather-details{position:absolute;left:36px;bottom:76px;z-index:4}#weather-details #weather-credit{position:static;max-width:min(640px,65vw)}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px){
 header{left:18px;top:16px}header h1{font-size:32px;margin:5px 0}header p{display:none}header .eyebrow{font-size:8px;letter-spacing:1.8px}.top-actions{top:18px;right:18px;left:auto;gap:6px}.top-actions button{padding:8px 11px;min-height:44px;font-size:12px}.wide-label{display:none}.compact-label{display:inline}#exploration-note{display:none}
 #shirley-menu{left:auto;right:76px;bottom:76px;max-width:none}#shirley-menu>summary{display:block;min-height:46px;cursor:pointer;list-style:none;border:1px solid #ffffff35;border-radius:10px;background:#213e43ee;padding:12px;font-size:12px}#shirley-menu>summary::-webkit-details-marker{display:none}#shirley-menu #biscuit-controls{position:absolute;left:auto;right:0;bottom:54px;width:235px;max-width:235px;padding:12px;border:1px solid #ffffff35;border-radius:12px;background:#20393df7;box-shadow:0 8px 30px #10292d55}#biscuit-controls button{min-height:44px;font-size:12px}#biscuit-status{font-size:11px;background:none;padding:4px 0}
 #sound-toggle{right:18px;bottom:76px;min-width:46px;width:46px;min-height:46px;padding:8px;font-size:0}#sound-toggle:before{content:'🔇';font-size:18px}#sound-toggle[aria-pressed=true]:before{content:'🔊'}
 #weather-details{left:18px;bottom:14px;max-width:145px;font-size:10px}#weather-details>summary{display:block;cursor:pointer;list-style:none;padding:7px 8px;background:#203b43c9;border-radius:7px}#weather-details #weather-credit{position:absolute;left:0;bottom:35px;width:280px;max-width:calc(100vw - 36px);font-size:11px;padding:12px;background:#20393df7;border:1px solid #ffffff30;box-shadow:0 8px 30px #10292d55;border-radius:10px}
 footer{left:auto;right:18px;bottom:14px;gap:6px}#hint{display:none}.walk-actions{gap:6px}.walk-actions button{padding:8px 10px;font-size:12px;min-height:44px}#joystick{display:block;left:18px;bottom:65px;width:104px;height:104px}#stick{left:27px;top:27px}
 #preview,#door-list{z-index:5;top:80px;right:18px;width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 160px);padding:22px}#entry{z-index:5;bottom:76px;width:min(390px,calc(100vw - 36px));max-height:calc(100dvh - 175px);overflow:auto;padding:22px}
 #neighbour-chat{right:18px;bottom:76px;width:min(430px,calc(100vw - 36px));max-height:calc(100dvh - 165px);padding:21px}#chat-history{max-height:24dvh}.chat-topics button{min-height:42px}#chat-input{min-height:44px;font-size:16px}.chat-compose button{min-height:44px}#chat-more-topics{max-height:125px}
 body:has(#preview:not([hidden]),#door-list:not([hidden]),#entry:not([hidden]),#neighbour-chat:not([hidden])) #shirley-menu,body:has(#preview:not([hidden]),#door-list:not([hidden]),#entry:not([hidden]),#neighbour-chat:not([hidden])) #joystick{display:none}
}
@media(max-width:600px){header h1{font-size:28px}.top-actions{top:76px;left:18px;right:auto}#preview,#door-list{top:130px;max-height:calc(100dvh - 205px)}#neighbour-chat{max-height:calc(100dvh - 215px)}#neighbour-chat h2{font-size:25px}#chat-history{max-height:22dvh}.chat-more .chat-topics{max-height:100px}.chat-topics{gap:5px}.chat-topics button{padding:7px 9px;font-size:11px}}
@media(max-height:550px) and (max-width:1200px){header .eyebrow{display:none}header h1{font-size:24px}.top-actions{top:12px;left:auto;right:18px}#preview,#door-list{top:65px;max-height:calc(100dvh - 135px)}#neighbour-chat{bottom:60px;max-height:calc(100dvh - 130px)}#neighbour-chat .eyebrow{display:none}#chat-history{max-height:20dvh}#shirley-menu,#sound-toggle{bottom:64px}#joystick{bottom:60px}}



@media(max-width:900px),(pointer:coarse) and (max-width:1200px){#weather-details>summary{min-height:44px;display:flex;align-items:center}.chat-topics button{min-height:44px}footer,#weather-details{bottom:calc(14px + env(safe-area-inset-bottom,0px))}#shirley-menu,#sound-toggle{bottom:calc(76px + env(safe-area-inset-bottom,0px))}#joystick{bottom:calc(65px + env(safe-area-inset-bottom,0px))}}

#biscuit-controls{position:absolute;left:36px;right:auto;bottom:112px;max-width:300px}#shirley-action{min-height:46px;font-size:12px;padding:9px 13px}#shirley-action[data-action=pet]{background:#f2d5a2;color:#273b3e}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px){#biscuit-controls{position:absolute;left:auto;right:76px;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;padding:0;border:0;background:none;box-shadow:none}#biscuit-status{display:none}#shirley-action{min-height:46px;font-size:12px;padding:10px}body:has(#preview:not([hidden]),#door-list:not([hidden]),#entry:not([hidden]),#neighbour-chat:not([hidden])) #biscuit-controls,body:has(#preview:not([hidden]),#door-list:not([hidden]),#entry:not([hidden]),#neighbour-chat:not([hidden])) #shirley-thought{display:none}}

header{transition:opacity 1.3s,transform 1.3s,visibility 0s}body.exploring header{opacity:0;transform:translateY(-8px);visibility:hidden;transition:opacity 1.3s,transform 1.3s,visibility 0s 1.3s}
#weather-details{left:auto;right:174px;bottom:84px;max-width:none}#weather-details>summary{display:flex;align-items:center;min-height:46px;padding:10px 12px;background:#213e43ee;border:1px solid #ffffff35;border-radius:9px;font-size:12px;cursor:pointer;list-style:none}#weather-details>summary::-webkit-details-marker{display:none}#weather-details #weather-credit{position:absolute;left:auto;right:0;bottom:56px;width:320px;max-width:calc(100vw - 36px);font-size:11px;padding:12px;background:#20393df7;border:1px solid #ffffff35;border-radius:11px;box-shadow:0 8px 30px #10292d55}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px){#weather-details{left:18px;right:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));max-width:145px}#weather-details>summary{font-size:10px;min-height:44px;padding:8px}#weather-details #weather-credit{left:0;right:auto;bottom:54px;width:280px}}
@media(prefers-reduced-motion:reduce){header,body.exploring header{transition:none;transform:none}}

#village-menu{position:relative;z-index:9}#village-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:46px;min-height:46px;border:1px solid #ffffff35;border-radius:9px;background:#213e43ee;color:#fff8e9;font-size:27px;line-height:1;cursor:pointer}#village-menu>summary::-webkit-details-marker{display:none}#village-menu>summary:focus-visible{outline:3px solid #ffd38a;outline-offset:3px}.village-menu-content{position:absolute;right:0;top:54px;width:260px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 105px);overflow:auto;padding:10px;background:#20393df7;border:1px solid #ffffff35;border-radius:13px;box-shadow:0 10px 35px #10292d66}#village-menu #settings{width:100%;text-align:left;background:transparent;border:0;border-radius:7px;font-size:13px;padding:11px 10px}#village-menu #settings:hover{background:#ffffff12}#village-menu #weather-details{position:static;width:100%;max-width:none;font-size:13px}#village-menu #weather-details>summary{display:flex;justify-content:space-between;min-height:44px;padding:11px 10px;border:0;background:transparent;border-radius:7px;font-size:13px}#village-menu #weather-details>summary:after{content:'⌄'}#village-menu #weather-details[open]>summary:after{content:'⌃'}#village-menu #weather-details #weather-credit{position:static;width:auto;max-width:none;padding:10px;margin-top:3px;background:#ffffff09;border:0;border-radius:8px;box-shadow:none;font-size:11px}
@media(max-width:600px){#village-menu{position:fixed;right:18px;top:16px}.village-menu-content{top:53px}}

/* Graphics quality */
#quality-setting{display:flex;flex-direction:column;gap:6px;padding:9px 10px;font-size:13px}#quality-setting select{width:100%;min-height:40px;font:inherit;border-radius:7px;border:1px solid #ffffff35;background:#ffffff12;color:#fff8e9;padding:6px 8px}#quality-setting select option{color:#203b43;background:#fff8e9}#quality-setting small{font-size:11px;opacity:.72}
#quality-hint{position:fixed;left:50%;top:calc(18px + env(safe-area-inset-top,0px));transform:translateX(-50%);z-index:12;width:min(420px,calc(100vw - 32px));padding:14px 16px;background:#20393df7;border:1px solid #ffffff35;border-radius:12px;box-shadow:0 10px 35px #10292d66;color:#fff8e9;font-size:14px}#quality-hint p{margin:0 0 10px}#quality-hint button{min-height:44px;margin-right:8px}#quality-hint[hidden]{display:none}
#quality-setting select{max-width:none}
/* Light graphics: frosted-glass blur over a live 3D canvas is re-rendered every frame by
   the compositor, which costs older tablets real time. Solid panels look nearly the same. */
.quality-low button{backdrop-filter:none;background-color:#213e43f5}

/* Menu items, the time & weather panel and the About popup */
#village-menu .menu-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:7px;font-size:13px;padding:11px 10px;min-height:44px}#village-menu .menu-item:hover{background:#ffffff12}
#sky-panel{z-index:5;top:80px;right:18px;width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 160px);padding:22px}
@media(max-width:600px){#sky-panel{top:130px;max-height:calc(100dvh - 205px)}}
#about{max-width:min(440px,calc(100vw - 32px));position:fixed}#about .about-links{display:flex;flex-direction:column;gap:10px;margin:18px 0}#about .about-links a{display:block;padding:12px 14px;border-radius:9px;background:#f2d5a2;color:#273b3e;font-weight:650;text-decoration:none}#about .about-links a:last-child{background:#ffffff14;color:#fff8e9;border:1px solid #ffffff30}
#author-key{margin-top:14px;text-align:left;font-size:12px;opacity:.8}#author-key summary{cursor:pointer}#author-key label{display:block;margin:8px 0 4px}#key-status{min-height:1.2em;font-size:12px}

#origin-note{position:absolute;z-index:3;left:50%;top:38%;transform:translate(-50%,-50%);pointer-events:none;max-width:min(360px,84vw);width:max-content;background:#fffaf0ee;color:#3a403b;border:1px solid #d8c6a2;border-radius:22px;padding:14px 22px;box-shadow:0 6px 28px #142e3833;font:italic 17px/1.45 Georgia,serif;text-align:center;animation:origin-note 3.6s ease forwards}@keyframes origin-note{0%{opacity:0;transform:translate(-50%,-40%)}12%,80%{opacity:1;transform:translate(-50%,-50%)}100%{opacity:0;transform:translate(-50%,-56%)}}@media(prefers-reduced-motion:reduce){#origin-note{animation:none}}
