:root{--header-bottom:120px;--footer-height:100px}body{height:100dvh}header{top:max(10px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));z-index:4;gap:14px}.brand{min-width:0}.actions{max-width:60%;align-items:center}button,select{min-height:44px}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #679add;outline-offset:2px}#menuToggle{top:var(--header-bottom)}aside{top:calc(var(--header-bottom) + 52px);bottom:var(--footer-height);max-height:none;z-index:3}#detail{top:var(--header-bottom);max-height:calc(100dvh - var(--header-bottom) - var(--footer-height));z-index:3}footer{bottom:max(10px,env(safe-area-inset-bottom));z-index:4}#detail #close{min-width:44px;min-height:44px;top:5px;right:5px}.compass{bottom:calc(var(--footer-height) + 10px)}dialog{max-height:90dvh;overflow:auto}
@media(max-width:1100px){header{padding:12px}.brand b{font-size:13px}.brand small{font-size:9px;letter-spacing:.6px}.actions{max-width:58%}.actions button,select{font-size:12px;padding:7px 10px}aside{width:250px;padding:18px}footer{left:280px}footer span{display:none}#detail{width:280px}}
@media(max-width:800px){header{display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:8px;border-radius:12px}header .brand{max-width:none}.brand b{font-size:13px}.brand small{font-size:9px}.seal{width:34px;height:34px;flex-shrink:0}.actions{max-width:none;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;gap:6px;padding-bottom:3px;scrollbar-width:thin}.actions>*{flex-shrink:0}.time{font-size:12px;min-width:76px;margin:0 4px 0 0}.time small{font-size:8px}.actions button,select{font-size:12px;min-height:44px;padding:8px 10px}#menuToggle{left:max(12px,env(safe-area-inset-left));font-size:12px}aside{left:12px;right:12px;width:auto;bottom:auto;max-height:calc(100dvh - var(--header-bottom) - var(--footer-height) - 64px);padding:16px}aside h1{font-size:19px}#list{min-height:80px}#list button{font-size:13px;min-height:48px}input{font-size:16px}footer,.menu-hidden footer{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));padding:8px;max-height:none;border-radius:12px}footer div{display:flex;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:3px}footer button{flex:0 0 auto;font-size:12px;min-height:44px;padding:8px 11px}footer span{display:none}#simStatus{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#detail{top:auto;left:12px;right:12px;bottom:var(--footer-height);width:auto;max-height:min(48dvh,calc(100dvh - var(--header-bottom) - var(--footer-height) - 10px));padding:18px;border-radius:16px;overscroll-behavior:contain}#number{font-size:25px;margin-top:6px}h2{font-size:18px;margin:5px 0}#buildingPhoto{max-height:130px;object-fit:contain;background:#e8eee8}#description{font-size:12px}#focus{margin-top:9px}.compass{right:20px}.map-callout{font-size:10px;min-height:30px;padding:5px 7px}.map-callout span{max-width:85px}}
@media(max-height:500px) and (orientation:landscape){header{flex-direction:row;align-items:center;padding:7px}.brand{max-width:36%!important}.brand small{display:none}.actions{max-width:62%;gap:4px}.seal{display:none}#detail{left:auto;width:42%;max-height:calc(100dvh - var(--header-bottom) - var(--footer-height) - 8px)}#buildingPhoto{max-height:90px}aside{right:auto;width:45%}#simStatus{display:none}}
@media(prefers-reduced-motion:reduce){.shooting-star{display:none}}
#locationDialog{width:min(92vw,480px);padding:24px;color:#263d35}#locationDialog h2{padding-right:40px}#coordinates{font-size:clamp(17px,4vw,24px);font-weight:700;overflow-wrap:anywhere}#locationAccuracy,.locationNote{font-size:12px;line-height:1.8;color:#697e72}#locationMap{display:inline-block;padding:12px 0;color:#285746}.locationNote{border-top:1px solid #dce5df;padding-top:14px}
.brand .anniversary-logo{display:block;width:64px;height:58px;object-fit:contain;background:transparent;border-radius:0;flex-shrink:0}@media(max-width:800px){.brand .anniversary-logo{width:48px;height:44px}}@media(max-height:500px) and (orientation:landscape){.brand .anniversary-logo{display:block;width:38px;height:36px}}
