:root{color-scheme:light;font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;color:#392f27;background:#e8d7b3}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #533e27;outline-offset:5px}
[hidden]{display:none!important}
#world{position:relative;width:100%;height:100%;isolation:isolate}
#scene{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;cursor:grab;outline-offset:-3px}
#scene:active{cursor:grabbing}
body[data-view="city"] #scene{cursor:crosshair}
header{position:absolute;z-index:2;top:clamp(20px,3vw,40px);left:clamp(20px,3vw,44px);right:24px;pointer-events:none;display:flex;align-items:baseline;gap:1.5rem;flex-wrap:wrap;line-height:1.3}
#name{font-size:clamp(19px,2vw,27px);letter-spacing:-.06em;font-weight:500;text-decoration:none;color:#30291f;pointer-events:auto;text-shadow:0 1px 0 #f2e4c7}
#place{font-size:12px;letter-spacing:.02em;}
#place:empty{display:none}
#landmark{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 190px);background:#f1e1c0ed;padding:9px 12px;font-size:12px;text-align:center;border-bottom:1px solid #8d7956;pointer-events:none}
#loading,#error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;background:#e9d9b8;padding:14px 18px;margin:0;white-space:nowrap}
#error button{background:none;border:0;text-decoration:underline;margin-left:8px;padding:3px}

#city-credit{position:absolute;right:20px;bottom:5px;font-size:10px;color:#493f2e;background:#e9d9b8d9;padding:1px 4px;text-decoration:none}
#destinations{position:absolute;inset:0;overflow:clip;pointer-events:none}
#destinations a{position:absolute;pointer-events:auto;font-size:12px;line-height:1.2;white-space:nowrap;color:#3f3527;text-decoration:none;background:#eddfbddb;padding:2px 4px}
#destinations a:hover,#destinations a:focus-visible{color:#241d16;background:#f4e7c8}
#destinations .radio-city,#destinations .radio-city:hover,#destinations .radio-city:focus-visible{padding:0;background:transparent;color:transparent;font-size:0}
#radio{position:absolute;z-index:3;left:clamp(20px,3vw,44px);bottom:24px;width:min(360px,calc(100% - 40px));padding:12px 14px;background:#eddfbdf5;border:1px solid #8d7956;font-size:12px}
.radio-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}
#radio-city{font:inherit;font-weight:500;flex:1;min-width:0;overflow-wrap:anywhere;margin:0}
#radio button{border:0;background:transparent;padding:4px 0;min-height:28px}
#radio button:disabled{opacity:.45;cursor:default}
#radio-close{font-size:20px;line-height:1;width:28px}
#radio-explore{font-size:11px;text-decoration:underline}
.radio-controls{display:flex;align-items:center;gap:12px}
#radio-station{font:inherit;color:inherit;background:#f3e6c9;border:1px solid #a18b65;border-radius:0;padding:7px 5px;flex:1;min-width:0;max-width:100%}
#radio-play{min-width:38px;text-align:right}
.radio-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;min-height:14px;margin-top:8px;font-size:10px;color:#62573f}
#radio-status{min-width:0;overflow-wrap:anywhere;flex:1 1 140px}
.radio-footer a{margin-left:auto;color:inherit;white-space:nowrap;text-decoration:none}
#radio-retry{text-decoration:underline;font-size:10px}
#pages{position:fixed;z-index:5;top:clamp(24px,3vw,44px);right:clamp(20px,3vw,44px);display:flex;gap:clamp(12px,2vw,28px);font-size:12px}
#pages a{color:#30291f;text-decoration:none;text-shadow:0 1px #f2e4c7}
#pages a:hover,#pages a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px}
#page-panel{position:fixed;z-index:4;inset:0 0 0 50%;width:50%;padding:clamp(100px,12vh,160px) clamp(24px,5vw,80px) 40px;background:#eee4cc;border-left:1px solid #a59674;overflow:auto}
#page-title{font:400 clamp(28px,4vw,56px)/1.1 ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;letter-spacing:-.065em;margin:0 0 40px;outline:none}
#page-close{position:absolute;top:clamp(66px,7vw,90px);right:clamp(18px,3vw,42px);background:none;border:0;font-size:24px;width:36px;height:36px;padding:0}
#page-content{font-size:clamp(12px,1.3vw,16px);line-height:1.6;overflow-wrap:anywhere}
#page-content a{color:#423c2c;text-underline-offset:5px}
body[data-page-open="true"] #world{width:50%}
body[data-page-open="true"] #pages{left:calc(50% + clamp(24px,5vw,80px));right:24px;justify-content:flex-start}
#building-links{position:absolute;inset:0;overflow:clip;pointer-events:none}
#building-links button{position:absolute;pointer-events:auto;transform:translate(-50%,-100%);padding:4px 7px;background:#efe4c9;border:1px solid #806c47;box-shadow:0 2px #443e2c24;font-size:11px;line-height:1.1;white-space:nowrap}
#building-links button[aria-current="page"]{background:#554c36;color:#f4e7c9;border-color:#554c36}
@media(max-width:600px){header{gap:9px;flex-direction:column}#name{font-size:21px}#landmark{bottom:30px;max-width:85%}}
@media(max-width:700px) and (orientation:portrait){
  #pages{top:auto;bottom:28px;left:20px;right:20px;justify-content:center;gap:24px;background:#eddfbde8;padding:10px 12px}
  #radio{bottom:88px}
  body[data-page-open="true"] #world{width:100%;height:50%}
  #page-panel{inset:50% 0 0;width:100%;height:50%;padding:76px 24px 28px;border-left:0;border-top:1px solid #a59674}
  body[data-page-open="true"] #pages{top:calc(50% + 14px);bottom:auto;left:24px;right:52px;justify-content:flex-start;gap:18px;padding:8px 0;background:none}
  #page-close{top:16px;right:12px}
  #page-title{font-size:32px;margin-bottom:26px}
}
@media(prefers-reduced-motion:no-preference){#page-panel:not([hidden]){animation:page-in .2s ease-out}@keyframes page-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

#city-credit a{color:inherit;text-decoration:none}
