@font-face{font-family:Hub;src:url('/hub.otf');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Hub,'Microsoft YaHei',sans-serif;color:#303f3d;background:#b6d9da}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}#world,#scene,#labels{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none}#labels{pointer-events:none;overflow:hidden}header{position:absolute;z-index:3;top:max(25px,env(safe-area-inset-top));left:32px;right:32px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;gap:12px;align-items:center}.brand>b{display:grid;place-items:center;width:48px;height:48px;background:#ffc93c;border:2px solid #303f3d;border-radius:16px 16px 16px 4px;font:bold 30px Georgia;box-shadow:2px 3px 0 #303f3d}.brand>span{font-size:22px;font-weight:bold;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:5px;margin-top:4px;color:#536b68}.toolbar{display:flex;gap:8px}.toolbar button{border:1px solid #ffffff90;background:#fffaf0d9;border-radius:24px;padding:11px 19px;color:#425753;box-shadow:0 3px 12px #3a665415}.welcome{position:absolute;top:132px;left:36px;pointer-events:none}.eyebrow{font-size:11px;letter-spacing:3px;color:#627f79}.welcome h1{font-size:42px;line-height:1.28;letter-spacing:2px;margin:15px 0 12px;font-weight:900}.welcome h1 span{color:#d27a4d}.welcome p{font-size:12px;color:#5c7670}#guide{position:absolute;z-index:5;right:32px;top:90px;width:min(320px,calc(100% - 40px));padding:22px;background:#fffaf0f5;border:1px solid #fff;border-radius:20px;box-shadow:0 10px 40px #29494025;font-size:13px;line-height:1.8}#guide p:last-child{font-size:11px;color:#71817b}footer{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 48px));z-index:3}.dock-heading{display:flex;justify-content:space-between;align-items:center;margin:0 14px 10px;font-size:12px;font-weight:bold}.dock-heading small,.hint{font-size:10px;font-weight:normal;color:#5b7570}nav{display:flex;gap:6px;padding:9px;background:#fffaf0e8;border:1px solid #fff;border-radius:22px;box-shadow:0 10px 35px #29494020;backdrop-filter:blur(15px)}nav a{flex:1;white-space:nowrap;padding:14px 8px;border-radius:14px;text-align:center;font-size:13px;transition:background .2s,transform .2s}nav i{font-style:normal;font-size:10px;color:#8a9b90;margin-right:8px}nav a:hover,nav a.active{background:#f2d488;transform:translateY(-2px)}a:focus-visible,button:focus-visible{outline:3px solid #df8653;outline-offset:4px}.place-label{position:absolute;left:0;top:0;transform:translate(-50%,-100%);pointer-events:auto;white-space:nowrap;display:flex;align-items:center;gap:10px;padding:9px 13px;border:1px solid #ffffffb0;border-radius:13px;background:#fffaf0ed;box-shadow:0 5px 18px #243d3520;font-size:14px;transition:background .18s,box-shadow .18s;will-change:left,top}.place-label:after{content:'';position:absolute;bottom:-6px;left:calc(50% - 5px);width:10px;height:10px;transform:rotate(45deg);background:#fffaf0}.place-label small{display:block;font-size:9px;color:#79887e;margin-top:3px;font-weight:normal}.place-label b{font-weight:normal;color:#9b7e4c}.place-label:hover,.place-label.active{background:#ffe19a;box-shadow:0 7px 24px #243d3540}.place-label:hover:after,.place-label.active:after{background:#ffe19a}#status{position:absolute;left:50%;bottom:152px;transform:translateX(-50%);padding:9px 16px;border-radius:20px;background:#fffaf0db;font-size:11px;pointer-events:none;transition:opacity .5s;white-space:nowrap}#status.quiet{opacity:0}.fallback{position:absolute;top:45%;left:10%;right:10%;text-align:center;background:#fffaf0;padding:20px;border-radius:15px}body.failed .welcome{opacity:.3}body.failed #status{bottom:45%;white-space:normal;width:80%;max-width:420px;text-align:center;font-size:15px}
:root{--dock-height:110px}html,body{overscroll-behavior:none}body{height:100dvh}button,a{touch-action:manipulation}button:disabled{opacity:.4;cursor:default}.toolbar button{min-height:44px;min-width:48px}nav a{display:flex;justify-content:center;align-items:center}nav a small{display:none}nav a:active,.place-label:active{background:#ffe19a;transform:translateY(1px)}.place-label:active{transform:translate(-50%,-100%)}.guide-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.guide-title button{min-width:48px;min-height:44px;border:0;border-radius:12px;background:#ecebdc;color:#334d43}#guide{max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}.map-tools{position:absolute;right:24px;bottom:calc(var(--dock-height) + 30px);z-index:3;display:flex;flex-direction:column;gap:8px}.map-tools button{width:44px;height:44px;background:#fffaf0ee;border:1px solid #fff;border-radius:15px;font:26px sans-serif;color:#425753;box-shadow:0 3px 15px #29494020}.failed .map-tools{display:none}
@media(max-width:700px),(max-height:520px) and (pointer:coarse){
 header{top:max(12px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}.brand{gap:9px}.brand>b{width:38px;height:38px;font-size:25px;border-radius:12px}.brand>span{font-size:17px}.brand small{font-size:9px;letter-spacing:2px}.toolbar{gap:6px}.toolbar button{font-size:12px;padding:9px 12px;min-height:44px}.welcome{left:20px;top:76px;right:20px}.welcome h1{font-size:20px;margin:0;letter-spacing:1px}.welcome h1 br,.welcome .eyebrow,.welcome p{display:none}
 #world{top:108px;bottom:calc(var(--dock-height) + 12px)}
 .place-label{min-height:44px;padding:10px 12px;font-size:12px;border-radius:14px;justify-content:center;gap:0;color:#263d35;border-color:#fff;box-shadow:0 4px 14px #29494028}.place-label small,.place-label b{display:none}
 footer{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;transform:none;border:1px solid #ffffffc9;border-radius:24px;background:#fffaf0f5;padding:14px 12px 12px;box-shadow:0 10px 30px #29494020}.dock-heading{margin:0 3px 10px;font-size:13px;color:#334d43}.dock-heading small{font-size:10px;color:#62776d;white-space:nowrap}.hint{display:none}
 nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}nav a{min-height:62px;min-width:0;padding:9px 3px;font-size:13px;background:#eee9db;border:1px solid #e0ded0;border-radius:14px;display:flex;gap:0}nav a>span{min-width:0}nav a small{display:block;font-size:10px;line-height:1.4;color:#627367;margin-top:4px}nav i{display:none}nav a:nth-child(3),nav a:nth-child(4){background:#e8e2ef;border-color:#d9d0e1}nav a:last-child{grid-column:span 2;background:#e1eddd;border-color:#cdddc5}nav a:hover{transform:none}nav a:active{background:#f4d388;transform:scale(.97)}
 .map-tools{right:14px;bottom:calc(var(--dock-height) + 22px);flex-direction:row;gap:7px}.map-tools button{width:46px;height:46px;border-radius:16px}#status{bottom:calc(var(--dock-height) + 28px);left:16px;transform:none;max-width:calc(100% - 140px);font-size:11px;white-space:normal;padding:10px 12px;line-height:1.5}
 #guide{top:70px;right:16px;left:16px;width:auto;padding:16px 18px;max-height:calc(100dvh - 90px);border-radius:22px;font-size:14px;box-shadow:0 16px 60px #29494050}.desktop-help{display:none}#guide p:last-child{font-size:12px}.failed #status{bottom:calc(var(--dock-height) + 40px);left:20px;right:20px;max-width:none;width:auto}.failed #world{display:none}
}
@media(max-width:360px){header{left:12px;right:12px}.brand>span{font-size:15px}.brand small{font-size:8px}.brand>b{width:34px;height:34px}.toolbar button{padding:9px 10px}.welcome{left:16px}.welcome h1{font-size:18px}.place-label{font-size:11px;padding:10px}footer{padding:12px 10px 10px;left:8px;right:8px}nav a{font-size:12px}.dock-heading{font-size:12px}.dock-heading small{font-size:9px}}
@media(max-width:700px) and (max-height:660px){.welcome{display:none}#world{top:70px}footer{padding-top:10px}.dock-heading{margin-bottom:7px}nav a{min-height:55px;padding:6px 2px}nav a small{margin-top:2px}}
@media(max-height:520px) and (min-width:480px){header{top:max(8px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}.brand>b{width:36px;height:36px;font-size:24px}.brand>span{font-size:17px}.brand small{display:none}.welcome{display:none}#world{top:58px;right:270px;bottom:0}footer{left:auto;right:max(12px,env(safe-area-inset-right));top:70px;bottom:max(12px,env(safe-area-inset-bottom));width:250px;transform:none;padding:12px;border-radius:22px;background:#fffaf0f5;overflow:auto}.dock-heading{display:block;font-size:12px;margin:0 2px 10px}.dock-heading small,.hint{display:none}nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0;border:0;background:none;box-shadow:none}nav a{min-height:55px;padding:8px 3px;border-radius:12px;font-size:12px;background:#eee9db}nav i{display:none}nav a small{display:block;margin-top:3px;font-size:10px;color:#627367}nav a:last-child{grid-column:span 2;background:#e1eddd}.place-label{min-height:44px;font-size:11px;padding:8px 10px}.place-label small,.place-label b{display:none}.map-tools{right:282px;bottom:10px;flex-direction:row}.map-tools button{width:44px;height:44px}#status{bottom:16px;left:16px;transform:none;max-width:calc(100% - 410px);white-space:normal;font-size:10px}#guide{top:60px;max-height:calc(100dvh - 74px)}.desktop-help{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-height:520px) and (min-width:480px) and (max-width:700px){#world{right:236px}footer{width:220px}.map-tools{right:248px}nav a{min-height:50px}.dock-heading{font-size:11px}#status{display:none}}
.building-carousel,.mobile-help{display:none}
@media(max-width:700px),(max-height:520px){
 footer,.map-tools,#home,.welcome,#labels{display:none}#world{inset:70px 0 150px}#status{display:none}.building-carousel{display:flex;position:absolute;z-index:3;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));align-items:center;justify-content:space-between;gap:12px}.building-carousel>button{flex:0 0 52px;width:52px;height:52px;border:1px solid #fff;background:#fff8e9ee;border-radius:50%;color:#334f45;font-size:25px;box-shadow:0 4px 20px #355b4620}.building-carousel>button:active{background:#f4d388;transform:scale(.94)}.building-caption{text-align:center;min-width:0}.building-caption>a{display:flex;flex-direction:column;align-items:center;min-height:88px;justify-content:center;gap:5px}.building-caption strong{font-size:23px;letter-spacing:1px}.building-caption span{font-size:11px;color:#526b60}.building-caption #building-count{font-size:11px;letter-spacing:3px}.building-caption b{font-size:13px;color:#345b45;margin-top:3px}.building-caption small{display:block;font-size:10px;color:#627a70;margin-top:8px}.mobile-help{display:block}.desktop-help{display:none}.failed footer{display:block}.failed .building-carousel{display:none}.failed #status{display:block;bottom:240px}
}
@media(max-width:360px){.building-caption strong{font-size:20px}.building-carousel{left:12px;right:12px;gap:8px}.building-carousel>button{width:48px;height:48px;flex-basis:48px}}
@media(max-height:520px){#world{inset:58px 120px 85px}.building-carousel{left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}.building-caption>a{min-height:54px;gap:2px}.building-caption strong{font-size:19px}.building-caption small{display:none}.building-caption #building-count{font-size:10px}.building-caption b{font-size:11px;margin:0}.building-carousel>button{align-self:flex-start;transform:translateY(-60px)}.building-carousel>button:active{transform:translateY(-60px) scale(.94)}}
/* Light Farm inspired: quiet serif typography, fine borders and translucent plum glass. */
body{font-family:Hub,'Songti SC',SimSun,serif;color:#f5ecd8;background:#979bb6}header{top:26px}.brand{color:#fff4dc}.brand>b{background:#302d4266;color:#ffe9b0;border:1px solid #f5ecd84d;box-shadow:0 6px 22px #30294618;border-radius:50%;font-weight:normal}.brand>span{font-size:19px;font-weight:normal;letter-spacing:3px}.brand small{color:#fff1d8ba;letter-spacing:4px}.toolbar button,.map-tools button{color:#f5ecd8;background:#302b426e;border:1px solid #f5ecd833;box-shadow:none;backdrop-filter:blur(20px);font-weight:normal}.toolbar button{font-size:11px;letter-spacing:1px;padding:9px 12px}.toolbar button:hover,.map-tools button:hover{background:#ffe9b02b}.welcome{top:150px;left:38px;text-shadow:0 2px 18px #30294635}.eyebrow{font:9px Georgia,serif;letter-spacing:2px;color:#f5ecd8b0}.welcome h1{font-family:Hub,SimSun,serif;font-size:33px;font-weight:normal;letter-spacing:6px;line-height:1.55;margin:18px 0}.welcome h1 span{color:#ffe9b0}.welcome p{font-size:12px;letter-spacing:2px;color:#fff1d4ce}.season-control{position:absolute;z-index:4;left:50%;top:24px;transform:translateX(-50%);text-align:center}.season-buttons{display:flex;align-items:center;gap:4px;padding:5px 8px;background:#302b429c;border:1px solid #f5ecd83b;box-shadow:0 8px 25px #30294612;border-radius:30px;backdrop-filter:blur(24px)}.season-buttons button{width:44px;min-height:44px;padding:8px 4px;border:1px solid transparent;border-radius:50%;background:none;color:#f5ecd8b0;font-size:13px}.season-buttons button[aria-pressed=true]{border-color:#ffe9b056;background:#ffe9b01c;color:#ffe9b0}.season-buttons #season-auto{width:50px;border-radius:22px;font-size:10px;border-left:1px solid #f5ecd821}.season-control>span{display:block;margin-top:9px;font-size:10px;letter-spacing:4px;color:#fff1d8de;text-shadow:0 1px 8px #30294650}.place-label{background:#302b42bc;border:1px solid #f5ecd845;border-radius:13px;color:#fff2d8;backdrop-filter:blur(14px);box-shadow:0 8px 24px #30294618}.place-label:after{background:#51465e}.place-label small{color:#e0d5c3be}.place-label b{color:#ffe9b0}.place-label:hover,.place-label.active{background:#5c4d67e8;box-shadow:0 0 22px #ffe9b021;border-color:#ffe9b091}.place-label:hover:after,.place-label.active:after{background:#5c4d67}.dock-heading{color:#f5ecd8}.dock-heading small,.hint{color:#f5ecd8b0}footer nav{background:#302b42bb;border:1px solid #f5ecd835;box-shadow:0 10px 40px #30294622;backdrop-filter:blur(28px);border-radius:24px}nav a{font-weight:normal;letter-spacing:2px}nav i{color:#e0d5c3aa}nav a:hover,nav a.active{background:#ffe9b021;color:#ffe9b0}#guide{background:#302b42f0;border-color:#f5ecd842;color:#f5ecd8;backdrop-filter:blur(25px)}#guide p:last-child{color:#d1c7d7}.guide-title button{background:#f5ecd814;color:#f5ecd8}#status{background:#302b42b5;color:#f5ecd8;border:1px solid #f5ecd830}.building-caption strong{font-weight:normal;letter-spacing:3px;color:#fff2d8;text-shadow:0 2px 12px #3029463b}.building-caption span,.building-caption small{color:#f5ecd8c7}.building-caption b{color:#ffe9b0;font-weight:normal;letter-spacing:2px}.building-carousel>button{background:#302b428c;color:#ffe9b0;border:1px solid #f5ecd83d;box-shadow:0 6px 24px #30294618;backdrop-filter:blur(15px)}.building-carousel>button:active{background:#ffe9b030}#spin-toggle{min-width:74px}
@media(min-width:701px) and (min-height:521px) and (max-width:1100px){.season-control{top:90px}.welcome{top:170px;left:22px}.welcome h1{font-size:25px}.brand>span{font-size:16px}.toolbar{gap:4px}.toolbar button{font-size:10px;padding:8px}}
@media(max-width:700px),(max-height:520px){header{top:max(12px,env(safe-area-inset-top))}.brand>span{font-size:16px;letter-spacing:2px}.brand small{font-size:8px;letter-spacing:2px}#spin-toggle{display:none}.season-control{top:72px;width:max-content;max-width:calc(100% - 24px)}.season-buttons{padding:3px 7px;gap:3px}.season-buttons button{min-height:40px;width:40px;font-size:12px}.season-control>span{margin-top:6px;font-size:9px}#world{top:137px}.building-carousel{bottom:max(18px,env(safe-area-inset-bottom))}.building-caption strong{font-size:22px}#guide{top:68px;z-index:6}.place-label{color:#f5ecd8}.failed footer{background:#302b42f5}.failed nav a{color:#f5ecd8;background:#f5ecd815}.failed nav a small{color:#e0d5c3}.failed .dock-heading{color:#f5ecd8}}
@media(max-width:360px){.brand>span{font-size:14px}.building-caption strong{font-size:19px}.season-control{top:68px}.season-buttons button{min-height:40px;width:38px}}
@media(max-height:520px){.season-control{top:8px}.season-control>span{display:none}.season-buttons{padding:0 5px}.season-buttons button{min-height:40px;width:34px}.season-buttons #season-auto{width:40px}#world{top:58px}.brand small{display:none}.building-caption strong{font-size:19px}.building-carousel{bottom:max(10px,env(safe-area-inset-bottom))}}
.place-label{backdrop-filter:none}
.season-buttons,.toolbar button,.map-tools button,footer nav,#guide,.building-carousel>button{backdrop-filter:none}

/* Transparent mobile HUD over the full-screen town. */
@media(max-width:700px),(max-height:520px){
 #world{inset:0}
 header,.season-control,.season-buttons,.building-carousel,.building-caption,.toolbar button,.brand>b,.building-carousel>button{background:transparent;box-shadow:none;backdrop-filter:none}
 .season-buttons{border-color:transparent}
 header,.season-control,.building-carousel{text-shadow:0 1px 3px #252137,0 2px 10px #252137b0}
 .building-caption strong,.building-caption span,.building-caption small,.building-caption b{color:#fff5df;text-shadow:0 1px 3px #252137,0 2px 10px #252137b0}
 .building-carousel>button{border-color:#fff4d980}
}

/* River garden edition: quiet editorial hierarchy and lighter floating signs. */
body:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 46%,transparent 42%,#29283b30);z-index:1}
header,.welcome,.season-control,.building-carousel,footer,.map-tools{z-index:3}
.welcome h1{font-size:37px;letter-spacing:7px;line-height:1.65;font-weight:400}
.welcome .eyebrow{letter-spacing:2.5px;font-size:8px}.welcome p{line-height:2;max-width:190px}
.place-label{background:#3633429c;border:1px solid #fff2d54a;box-shadow:0 5px 18px #25213815;border-radius:8px 18px 18px 18px;padding:12px 17px;font-weight:400;letter-spacing:1px}
.place-label small{font-size:10px;letter-spacing:1px;margin-top:5px}.place-label b{font-size:17px;font-weight:400}.place-label:after{background:#514c5c}
footer nav{background:#302c3f80;border-radius:22px;border-color:#fff1d43b;padding:7px}
footer nav a{border-radius:15px;min-height:52px;transition:background .25s,transform .25s}footer nav a:hover{transform:translateY(-3px)}
.season-buttons{background:#39334570;border-color:#fff2d538}.season-buttons button{transition:background .6s,color .6s}
.brand>b{border-color:#ffeac080;background:transparent}.brand small{letter-spacing:3px}
@media(max-width:700px),(max-height:520px){
 .season-buttons{background:transparent;border-color:transparent}
 .building-caption>a{gap:7px}.building-caption #building-count{letter-spacing:5px;color:#fff0c9}
 .building-caption strong{letter-spacing:4px;font-size:24px}.building-caption b{border-bottom:1px solid #fff1cb6b;padding:5px 10px}
 .building-carousel>button{width:48px;height:48px;flex-basis:48px;border-color:#fff4d965}
}
@media(max-height:520px){.building-caption strong{font-size:19px}.building-caption>a{gap:2px}.building-caption b{padding:2px 8px}}

/* Mobile keeps automatic seasons without a manual season toolbar. */
@media(max-width:700px),(max-height:520px){.season-control{display:none}}

@media(min-width:701px) and (min-height:521px){.place-label{padding:8px 12px;font-size:12px;border-radius:18px;gap:7px}.place-label small{display:none}.place-label b{font-size:13px}}

/* Languages (docs/I18N.md): the shared globe switch sits at the right end of the toolbar; Latin season names need wider pills. */
.toolbar .lang-slot{display:inline-flex;align-items:center}
html:not([lang^="zh"]) .season-buttons button{width:auto;padding:8px 11px;border-radius:22px}
html:not([lang^="zh"]) .season-buttons #season-auto{width:auto}
html:not([lang^="zh"]) .toolbar button{letter-spacing:0}
@media(min-width:701px) and (min-height:521px){html:not([lang^="zh"]) .welcome h1{font-size:31px;letter-spacing:1px;line-height:1.45}}
@media(min-width:701px) and (max-width:1100px) and (min-height:521px){html:not([lang^="zh"]) .welcome h1{font-size:25px}}
@media(min-width:701px) and (min-height:521px){html:not([lang^="zh"]) .season-control{top:88px}html:not([lang^="zh"]) .welcome{top:180px}}
@media(max-width:700px),(max-height:520px){
 .toolbar{position:relative}.toolbar .lang-slot{position:absolute;right:0;top:calc(100% + 8px)}
 html:not([lang^="zh"]) .toolbar button{white-space:nowrap;padding:9px 10px}
}
