/* Homepage-only installation UI. The browser's installation prompt stays native. */
.home-install-banner[hidden],.home-install-footer[hidden]{display:none!important}
.home-install-banner{position:fixed;z-index:40;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));max-width:440px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:13px 10px 13px 14px;border:1px solid #dbbd804d;border-radius:14px;background:#141c25;box-shadow:0 12px 35px #0007;color:#f1e8d5;line-height:1.5;letter-spacing:.02em}
.home-install-icon{width:42px;height:42px;flex:0 0 42px;border-radius:10px;border:1px solid #dbbd8038}
.home-install-copy{flex:1;min-width:0}
.home-install-copy strong{font-family:var(--font-brand,serif);font-size:14px;font-weight:400;letter-spacing:.09em}
.home-install-copy p{font-size:11px;color:#b7c3c8;margin:4px 0 0;line-height:1.6;overflow-wrap:anywhere}
.home-install-action,.home-install-done,.home-install-copy-url{border:1px solid #dbbd80;border-radius:7px;background:#dbbd80;color:#15201f;min-height:44px;padding:9px 12px;font-size:12px;line-height:1.5;letter-spacing:.02em}
.home-install-action{max-width:112px;flex:0 0 auto}
.home-install-action:disabled{opacity:.65;cursor:wait}
.home-install-dismiss,.home-install-close{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:0;background:transparent;color:#bac5ca;border-radius:8px}
.home-install-dismiss svg,.home-install-close svg,.home-install-step-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.preview-footer button.home-install-footer{color:#dbbd80;font-size:12px;min-height:44px;padding:9px 0;background:none;border:0}
body.homepage.home-install-visible{padding-bottom:105px}
.home-install-dialog{position:fixed;inset:auto 0 0;width:min(100%,480px);max-width:100%;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);margin:0 auto;padding:12px 25px calc(25px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;border:1px solid #dbbd8038;border-bottom:0;border-radius:24px 24px 0 0;background:#141c25;color:#f1e8d5;box-shadow:0 -12px 45px #0005;font-family:var(--font-ui,sans-serif);line-height:1.7;letter-spacing:.02em}
.home-install-dialog::backdrop{background:#03060bb8}
.home-install-dialog .home-install-handle{width:36px;height:4px;border-radius:3px;background:#dbbd8040;margin:0 auto 20px}
.home-install-close{position:absolute;right:11px;top:16px}
.home-install-dialog>.home-install-icon{display:block;width:56px;height:56px;margin-bottom:18px}
.home-install-dialog h2{font-family:var(--font-mincho,serif);font-size:24px;font-weight:400;line-height:1.5;letter-spacing:.03em;margin:0 0 10px}
.home-install-intro{font-size:13px;color:#b7c3c8;margin:0}
.home-install-steps{list-style:none;margin:20px 0;padding:0}
.home-install-steps li{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #dbbd8038}
.home-install-step-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid #dbbd8038;border-radius:10px;background:#090b13;color:#dbbd80}
.home-install-steps strong{display:block;font-size:14px;font-weight:500;line-height:1.6}
.home-install-steps small{display:block;color:#b7c3c8;font-size:11px;line-height:1.7;margin-top:3px}
.home-install-note{font-size:12px;line-height:1.8;color:#b7c3c8;margin:0 0 18px}
.home-install-done{display:block;width:100%;font-size:14px;min-height:46px}
.home-install-copy-url{width:100%;margin-bottom:12px;background:transparent;color:#dbbd80}
.home-install-url{display:block;width:100%;border:1px solid #dbbd8038;background:#090b13;color:#d4ddd9;border-radius:6px;padding:9px;font-size:16px;margin:0 0 12px}
.home-install-url[hidden],.home-install-copy-url[hidden]{display:none}
html:has(.home-install-dialog[open]),body:has(.home-install-dialog[open]){overflow:hidden}
.home-install-banner button:focus-visible,.home-install-dialog button:focus-visible,.home-install-footer:focus-visible{outline:2px solid #dbbd80;outline-offset:3px}
@media(max-width:360px){.home-install-banner{gap:7px;padding-left:10px;padding-right:4px}.home-install-icon{width:36px;height:36px;flex-basis:36px}.home-install-copy strong{font-size:12px}.home-install-action{font-size:11px;padding:8px;max-width:91px}.home-install-dialog{padding-left:19px;padding-right:19px}.home-install-dialog h2{font-size:22px}}
@media(min-width:1001px){.home-install-banner,.home-install-footer{display:none!important}body.homepage.home-install-visible{padding-bottom:0}}
