:root{color:#f2e8d4;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--cream:#f2e8d4;--warm:#edd5a7;--muted:#c5c8dc;--lavender:#d5cee9;background:#34476a;font-family:DM Sans,SF Pro Display,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;appearance:none}button,a{touch-action:manipulation}button:disabled{cursor:wait;opacity:.7}button:focus-visible,a:focus-visible,input:focus-visible{outline-offset:4px;outline:2px solid #efdcaf}button,a{color:inherit}p,h1,h2{margin:0}button svg{flex-shrink:0}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.moon-app{isolation:isolate;background:linear-gradient(165deg,#394c71,#7c769b 65%,#8a839e);min-height:100dvh;position:relative;overflow:hidden}.weather-background{z-index:-3;pointer-events:none;position:fixed;inset:0}.weather-background img{object-fit:cover;object-position:center 54%;width:100%;height:100%}.day-background{z-index:-2;transition:opacity 2s}.day-background img{filter:saturate(.65)}.lighting-day .moon-status{background:radial-gradient(#44567a85,#0000 78%);border-radius:18px}.lighting-day .direction-description,.lighting-day .altitude-indicator{color:#f1e3d5;text-shadow:0 1px 3px #344d79}.weather-unknown .weather-background{visibility:hidden}.weather-unknown .ambient-weather{display:none}.weather-unknown.lighting-day{background:linear-gradient(165deg,#536689,#8c91ac 65%,#b5a4b8)}.moon-app:after{content:"";z-index:-1;pointer-events:none;background:linear-gradient(#23314e0a,#0000 45%,#3a365633);position:fixed;inset:0}.app-content{width:min(100%,500px);min-height:100dvh;padding:max(10px, env(safe-area-inset-top)) 24px max(8px, env(safe-area-inset-bottom));flex-direction:column;margin-inline:auto;display:flex}.topbar{flex-shrink:0;justify-content:space-between;align-items:center;height:44px;display:flex}.wordmark{letter-spacing:-.8px;align-items:center;gap:0;font-size:20px;font-weight:700;text-decoration:none;display:flex}.wordmark>span:nth-child(2){font-weight:400}.brand-moon{background:#ecd7b7;border-radius:50%;width:19px;height:19px;margin-right:9px;display:inline-block;transform:rotate(-18deg);box-shadow:inset -6px 2px #4b5578}.brand-star{color:#e5ceab;margin-left:5px;font-size:10px;transform:translateY(-8px)}.topbar-right{align-items:center;gap:2px;display:flex}.date-caption{color:var(--muted);letter-spacing:.5px;font-size:11px}.icon-button{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.icon-button:hover{background:#a5a5c41a}.night-main{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:clamp(9px,1.3dvh,15px);padding:12px 0 10px;display:flex}.moon-scene{flex-direction:column;align-items:center;width:100%;display:flex}.eyebrow{letter-spacing:3px;color:var(--muted);align-items:center;gap:12px;font-size:11px;display:flex}.eyebrow span{background:#d1d0e046;width:20px;height:1px}.moon-portrait{width:clamp(102px,19dvh,170px);height:clamp(102px,19dvh,170px);margin:12px 0 6px;position:relative}.moon-portrait:before{content:"";background:radial-gradient(circle,#e7d0aa16,#0000 70%);border-radius:50%;position:absolute;inset:-25%}.moon-canvas{filter:drop-shadow(0 0 20px #e8c9982e);width:100%;height:100%;position:relative}.portrait-star{color:#eedcbbad;pointer-events:none;font-size:17px;position:absolute}.star-one{top:35%;left:-32px}.star-two{font-size:10px;top:16%;right:-26px}.star-three{font-size:28px;bottom:8%;right:-40px}.lighting-day .portrait-star{opacity:0}.phase-caption{letter-spacing:1.2px;color:var(--cream);font-size:12px}.location-chip{height:44px;color:var(--muted);background:0 0;border:0;border-radius:22px;align-items:center;gap:5px;max-width:95%;margin-top:0;padding:0 12px;font-size:11px;display:flex}.location-chip>span:first-of-type{text-overflow:ellipsis;white-space:nowrap;max-width:210px;overflow:hidden}.chip-weather{white-space:nowrap;color:#e0d6c8;border-left:1px solid #b8b7ca42;margin-left:4px;padding-left:7px}.navigation-area{flex-direction:column;align-items:center;display:flex}.mode-label{color:#d3cee2;letter-spacing:1.4px;align-items:center;gap:5px;margin-bottom:7px;font-size:10px;display:flex}.mode-label-detail{letter-spacing:.5px;border:1px solid #cbc4df3f;border-radius:4px;margin-left:5px;padding:2px 5px;font-size:9px}.status-dot{background:#a6a7bb;border-radius:50%;width:4px;height:4px}.status-dot.connected{background:#ddce9d;box-shadow:0 0 8px #ebd8a37a}.compass-dial{background:radial-gradient(circle,#69688616,#313f6438);border:1px solid #dad2ec20;border-radius:50%;width:clamp(184px,28dvh,258px);height:clamp(184px,28dvh,258px);position:relative;box-shadow:inset 0 0 40px #c4bcd609,0 8px 30px #30355414}.dial-ticks{fill:none;stroke:#c4c2d443;stroke-width:1px;width:100%;height:100%;position:absolute;inset:0}.dial-ticks line{stroke:#e0d8e06b}.dial-ticks .major-tick{stroke:#e3d4d0a6}.dial-ticks .inner-dial-ring{stroke:#d2c7df17;stroke-dasharray:2 5}.dial-label{color:#e3dce0;font-size:9px;line-height:1;position:absolute}.dial-front{top:14%;left:50%;transform:translate(-50%)}.dial-back{bottom:14%;left:50%;transform:translate(-50%)}.dial-right{top:50%;right:15%;transform:translateY(-50%)}.dial-left{top:50%;left:15%;transform:translateY(-50%)}.arrow-position{place-items:center;transition:transform .1s linear;display:grid;position:absolute;inset:32.5%}.moon-arrow{object-fit:contain;filter:drop-shadow(0 4px 10px #e8d3ac40);width:100%;height:100%}.sky-mode .moon-arrow{width:75%;height:75%}.is-waiting .moon-arrow{opacity:.37;filter:none}.target-glow{opacity:0;background:radial-gradient(circle,#eadaab25,#0000 65%);border-radius:50%;transition:opacity .5s;position:absolute;inset:24%}.is-aligned .target-glow{opacity:1}.is-aligned{border-color:#e0cf9959;box-shadow:0 0 30px #dcc89726,inset 0 0 30px #dac99517}.sky-center{pointer-events:none;border:1px solid #eddfbd75;border-radius:50%;width:6px;height:6px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.dial-caption{text-align:center;letter-spacing:1px;color:#d6cfe3;pointer-events:none;width:100%;font-size:8px;position:absolute;bottom:23%;left:0}.is-aligned .dial-caption{color:var(--warm)}.moon-status{text-align:center;width:100%;min-height:76px}.moon-status h1{letter-spacing:1px;text-shadow:0 2px 10px #41425c3d;font-size:clamp(18px,2.7dvh,23px);font-weight:500;line-height:1.5}.direction-description{color:var(--muted);letter-spacing:1.4px;margin-top:3px;font-size:11px}.rise-time{color:#e5d2ef;letter-spacing:.8px;margin-top:2px;font-size:15px}.tiny-moon{opacity:.8;margin-right:7px}.altitude-indicator{color:#d0cddd;letter-spacing:.8px;justify-content:center;align-items:center;gap:6px;height:28px;margin-top:2px;font-size:10px;display:flex}.altitude-indicator svg{fill:none;stroke:#cfcede7a;stroke-width:1.3px}.altitude-indicator circle{fill:#ead5ae;stroke:none}.altitude-base{stroke-dasharray:3 5;stroke:#bdc1d052}.meteor-notice{color:#e5ddef;letter-spacing:.2px;background:#a5a1c522;border:1px solid #d3c9e52e;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:min(100%,340px);min-height:44px;font-size:11px;display:flex}.controls{text-align:center;flex-shrink:0;padding-top:6px}.sensor-instruction{color:#e1d9db;letter-spacing:.7px;min-height:17px;margin-bottom:10px;font-size:10px;line-height:1.7}.start-button{color:#414762;letter-spacing:1px;background:linear-gradient(105deg,#eed6ac,#ddc5a4);border:1px solid #e7d9bd69;border-radius:17px;justify-content:center;align-items:center;gap:10px;width:100%;height:50px;font-size:14px;font-weight:600;display:flex;box-shadow:0 4px 20px #3437551a}.start-button>span{margin-left:12px;font-size:20px;font-weight:400}.secondary-controls{justify-content:center;align-items:center;gap:9px;display:flex}.secondary-controls button{color:#e0d8e1;letter-spacing:.4px;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-width:120px;min-height:44px;font-size:10px;display:flex}.controls-divider{background:#ddcfd544;width:1px;height:12px}.moon-dialog{color:var(--cream);background:linear-gradient(145deg,#424f74f7,#656487fa);border:1px solid #c3bdd84d;border-radius:25px;width:min(90vw,440px);max-height:min(83dvh,730px);padding:25px;box-shadow:0 24px 90px #22283e50}.moon-dialog::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#26334a66}.dialog-heading{justify-content:space-between;align-items:flex-start;gap:5px;margin-bottom:20px;display:flex}.dialog-heading .icon-button{flex-shrink:0;margin-top:-10px;margin-right:-10px}.dialog-heading h2{letter-spacing:.5px;font-size:21px;font-weight:500}.dialog-eyebrow{color:#cfcede;letter-spacing:1px;margin-bottom:9px;font-size:10px}.city-search{gap:8px;display:flex}.city-search input{width:100%;min-width:0;height:48px;color:var(--cream);background:#3b466837;border:1px solid #bab6d359;border-radius:12px;padding:0 14px;font-size:16px}.city-search input::placeholder{color:#c4c2d3}.city-search button{color:#3e4665;background:#e3ceb2;border:0;border-radius:12px;min-width:62px;min-height:44px;padding:0 14px;font-size:12px}.search-message{color:var(--muted);min-height:16px;margin-top:13px;font-size:11px}.city-results{margin:12px 0;padding:0;list-style:none}.city-results button{text-align:left;color:#e8e0dc;background:0 0;border:0;border-bottom:1px solid #b1b0c529;align-items:center;gap:8px;width:100%;min-height:48px;padding:10px 4px;font-size:12px;display:flex}.city-results button>span{flex:1}.dialog-location{background:0 0;border:1px solid #c7c1d34a;border-radius:12px;justify-content:center;align-items:center;gap:7px;width:100%;min-height:44px;margin-top:12px;font-size:12px;display:flex}.help-steps{border-bottom:1px solid #c3bdd42b;gap:16px;margin-bottom:15px;padding-bottom:15px;display:grid}.help-steps p{gap:5px;display:grid}.help-steps strong{color:#ecd6b1;font-size:13px;font-weight:500}.help-steps span,.help-note{color:#d6d3df;font-size:12px;line-height:1.9}.help-note+.help-note{margin-top:12px}.source-links{flex-wrap:wrap;gap:7px 14px;margin-top:20px;display:flex}.source-links a,.meteor-source{color:#e0d8b9;text-underline-offset:4px;font-size:10px;line-height:2;text-decoration-color:#e0d8b977}.source-caption{color:#c7c7d6;margin-top:13px;font-size:10px;line-height:1.7}.meteor-window{background:#8590ae15;border:1px solid #c7c2d13b;border-radius:15px;gap:9px;margin-bottom:15px;padding:18px;display:grid}.meteor-window>span{color:var(--muted);font-size:11px}.meteor-window>strong{color:#ecd7b8;font-size:17px;font-weight:400;line-height:1.8}.meteor-conditions{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.meteor-conditions p{color:#d7d1e6;background:#a5a3bd23;border-radius:8px;padding:7px 10px;font-size:12px}.meteor-source{margin-top:18px;display:inline-block}.ambient-weather{z-index:-1;pointer-events:none;position:fixed;inset:0;overflow:hidden}.ambient-weather span{opacity:0;position:absolute}.weather-rain .ambient-weather span{opacity:.12;background:#d1e4e5;width:1px;height:40px;animation:7s linear infinite rainfall;top:-30px;transform:rotate(15deg)}.weather-rain .ambient-weather span:first-child{animation-delay:-2s;left:13%}.weather-rain .ambient-weather span:nth-child(2){animation-delay:-5s;left:76%}.weather-rain .ambient-weather span:nth-child(3){animation-delay:-6s;left:49%}.weather-snow .ambient-weather span{opacity:.4;background:#dddce7;border-radius:50%;width:3px;height:3px;animation:15s linear infinite snowfall;top:-20px}.weather-snow .ambient-weather span:first-child{animation-delay:-4s;left:18%}.weather-snow .ambient-weather span:nth-child(2){animation-delay:-8s;left:71%}.weather-snow .ambient-weather span:nth-child(3){animation-delay:-12s;left:48%}@keyframes rainfall{to{transform:translateY(110dvh)rotate(15deg)}}@keyframes snowfall{50%{margin-left:20px}to{margin-left:-10px;transform:translateY(110dvh)}}@media (height<=740px) and (orientation:portrait){.app-content{padding-top:max(7px, env(safe-area-inset-top));padding-inline:22px}.night-main{gap:7px;padding-top:5px;padding-bottom:5px}.moon-portrait{width:15dvh;min-width:82px;height:15dvh;min-height:82px;margin-top:7px;margin-bottom:3px}.moon-status{min-height:67px}.compass-dial{width:28dvh;min-width:175px;height:28dvh;min-height:175px}.mode-label{margin-bottom:5px}.controls{padding-top:4px}.sensor-instruction{margin-bottom:7px}.start-button{height:46px}.moon-status h1{font-size:19px}}@media (height<=600px) and (orientation:portrait){.app-content{padding-inline:18px}.topbar{height:40px}.moon-portrait{width:77px;min-width:0;height:77px;min-height:0;margin-top:6px}.night-main{gap:5px}.compass-dial{width:158px;min-width:0;height:158px;min-height:0}.phase-caption{font-size:10px}.eyebrow{font-size:9px}.moon-status{min-height:65px}.moon-status h1{font-size:17px}.rise-time{font-size:13px}.location-chip,.start-button{height:44px}.meteor-notice{font-size:10px}.controls{padding-top:2px}.sensor-instruction{margin-bottom:5px;font-size:9px}.wordmark{font-size:18px}}@media (width>=700px) and (orientation:portrait){.app-content{max-width:520px;padding-inline:44px}.night-main{padding-top:25px}.weather-background img{object-position:center 57%}.moon-portrait{width:190px;height:190px}.compass-dial{width:280px;height:280px}}@media (orientation:landscape) and (height<=650px){.app-content{width:min(100%,1000px);padding-inline:max(24px, env(safe-area-inset-left))}.night-main{grid-template-columns:1fr 1.1fr 1fr;align-items:center;gap:14px;padding:4px 0;display:grid}.moon-scene{grid-area:1/1}.navigation-area{grid-area:1/2}.moon-status{grid-area:1/3}.moon-portrait{width:clamp(75px,28dvh,130px);height:clamp(75px,28dvh,130px);margin-top:8px}.compass-dial{width:clamp(150px,48dvh,220px);height:clamp(150px,48dvh,220px)}.eyebrow{letter-spacing:1px;gap:5px;font-size:9px}.eyebrow span{width:10px}.phase-caption{font-size:10px}.portrait-star{display:none}.moon-status h1{font-size:17px}.rise-time{font-size:12px}.altitude-indicator{font-size:9px}.location-chip{padding-inline:2px;font-size:10px}.location-chip>span:first-of-type{max-width:85px}.chip-weather{margin-left:1px;padding-left:5px}.controls{grid-template-columns:1fr 1fr 1fr;align-items:center;gap:15px;padding:8px 0 0;display:grid}.sensor-instruction{grid-column:1;margin:0}.start-button{grid-area:1/2;height:44px;font-size:12px}.secondary-controls{grid-column:3;gap:2px}.secondary-controls button{gap:3px;min-width:74px;font-size:9px}.controls-divider{display:none}.meteor-notice{grid-area:2/3;font-size:9px}.moon-dialog{max-height:90dvh}}@media (orientation:portrait){.night-main:has(.meteor-notice){gap:7px;padding:8px 0 6px}.night-main:has(.meteor-notice) .moon-portrait{width:clamp(80px,16dvh,150px);height:clamp(80px,16dvh,150px)}.night-main:has(.meteor-notice) .compass-dial{width:clamp(170px,26dvh,244px);height:clamp(170px,26dvh,244px)}}@media (height<=740px) and (orientation:portrait){:is(.night-main,.night-main:has(.meteor-notice)){gap:7px;padding:5px 0}.moon-scene{grid-template-rows:auto auto auto;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:3px 17px;width:min(100%,315px);display:grid}:is(.moon-scene .moon-portrait,.night-main:has(.meteor-notice) .moon-portrait){grid-area:1/1/4;width:88px;min-width:0;height:88px;min-height:0;margin:0}.moon-scene .eyebrow{letter-spacing:1.3px;grid-area:1/2;justify-self:start;font-size:10px}.moon-scene .eyebrow span{display:none}.moon-scene .phase-caption{letter-spacing:.7px;grid-area:2/2;font-size:11px}.moon-scene .location-chip{grid-area:3/2;justify-self:start;max-width:100%;padding:0}.moon-scene .portrait-star{display:none}.night-main:has(.meteor-notice) .compass-dial{width:175px;height:175px}}@media (height<=600px) and (orientation:portrait){:is(.night-main,.night-main:has(.meteor-notice)){gap:5px;padding:4px 0}.moon-scene{grid-template-columns:70px minmax(0,1fr);gap:2px 14px}:is(.moon-scene .moon-portrait,.night-main:has(.meteor-notice) .moon-portrait){width:70px;height:70px}.moon-scene .eyebrow{font-size:9px}.moon-scene .phase-caption{font-size:10px}.compass-dial{width:140px;height:140px}.night-main:has(.meteor-notice) .compass-dial{width:140px;height:140px}}@media (orientation:landscape) and (height<=650px){.night-main{gap:10px}.night-main:has(.meteor-notice) .moon-status{padding-bottom:64px}.meteor-notice{grid-area:1/3;align-self:center;transform:translateY(58px)}}
