#app-install-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;touch-action:manipulation;cursor:pointer}#app-install-button svg{width:24px;height:24px;pointer-events:none}#app-install-button[data-game=true]{display:none}#exploration-tools #exploration-tools-group>#app-install-button{display:flex}#app-install-slot{margin:20px 0 0}#app-install-slot>#app-install-button{width:100%;border:1px solid #89b6b066;border-radius:14px;background:#24483d99;color:#dcf0df;padding:12px;font:600 15px system-ui}#app-install-slot>#app-install-button:hover{background:#335c4b}
#app-install-dialog{box-sizing:border-box;width:min(570px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;border:1px solid #8cb7ad99;border-radius:23px;background:#142c29;color:#edf4e6;font:15px/1.75 system-ui,-apple-system,sans-serif;overflow:hidden;box-shadow:0 22px 90px #030b14aa}#app-install-dialog:not([open]){display:none}#app-install-dialog[open]{display:flex;flex-direction:column}#app-install-dialog::backdrop{background:#06121bb3;backdrop-filter:blur(8px)}#app-install-dialog header,#app-install-dialog footer{position:static;inset:auto;transform:none;box-sizing:border-box;width:auto;display:flex;align-items:center;gap:12px;flex-shrink:0;background:#1c3730;padding:16px 18px}#app-install-dialog header{border-bottom:1px solid #bbd4b22b}#app-install-dialog header img{border-radius:14px;flex-shrink:0}#app-install-dialog h2{font-size:20px;line-height:1.4;margin:0;flex:1;letter-spacing:.03em}#app-install-dialog header>button{width:44px;min-width:44px;padding:0;font-size:24px}#app-install-dialog button{box-sizing:border-box;min-height:44px;width:auto;padding:9px 14px;border:1px solid #8fb49c66;border-radius:12px;background:#2a493d;color:#eff5e1;font:600 14px system-ui;cursor:pointer;touch-action:manipulation}#app-install-dialog button[hidden]{display:none!important}#app-install-dialog button:disabled{opacity:.5;cursor:default}#app-install-dialog button:focus-visible,#app-install-button:focus-visible{outline:3px solid #e2cf8d;outline-offset:2px}#app-install-dialog nav{position:static;display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}#app-install-dialog nav button[aria-pressed=true]{color:#203a2e;background:#d0e4af;border-color:#d0e4af}.app-install-body{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:14px 22px}.app-install-body p{margin:0 0 12px;color:inherit;font-size:14px;line-height:1.8}.app-install-body ol{margin:0 0 20px;padding-left:27px}.app-install-body li{padding-left:5px;margin:12px 0}.app-install-body li::marker{color:#e3ce90;font-weight:800}.app-install-body .app-install-note{font-size:12px;color:#b5cbbd}.app-install-body .app-install-notice{padding:10px 12px;border-radius:12px;background:#d7b3721c;color:#f1d79e}.app-install-body [role=status]:empty{display:none}.app-install-body [role=status]{color:#e4d392}#app-install-dialog footer{border-top:1px solid #bbd4b22b;flex-wrap:wrap;padding-bottom:max(14px,env(safe-area-inset-bottom))}#app-install-dialog footer>button{flex:1;white-space:nowrap}#app-install-dialog .app-install-primary{background:#cde4ae;color:#20382e}
/* The game hides its own footer on phones; this dialog's actions stay visible. */
#app-install-dialog>footer{display:flex!important}
@media(max-width:480px){#app-install-dialog h2{font-size:18px}#app-install-dialog header{padding:12px;gap:9px}#app-install-dialog header img{width:44px;height:44px}.app-install-body{padding:14px 17px}#app-install-dialog footer{padding-left:12px;padding-right:12px;gap:8px}}
/* Installed iOS apps draw beneath system bars; keep controls out of the notch. */
html[data-app-display=installed] #game-viewport>.game-header,html[data-app-display=installed] #game-viewport>header{padding-top:max(22px,env(safe-area-inset-top))}html[data-app-display=installed] body:has(#login-form){padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
