/* Floating controls overlay the page without changing its viewport-sized stops. */
html { --floating-action-height: 56px; }
.action-dock { position: fixed; inset: auto max(16px, env(safe-area-inset-right)) max(16px, calc(env(safe-area-inset-bottom) + 12px)) auto; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 0; pointer-events: none; background: none; }
.action-dock > * { pointer-events: auto; }
.action-dock button { cursor: pointer; font-family: inherit; }
.action-dock .download-float { display: flex; align-items: center; gap: 10px; height: var(--floating-action-height); padding: 6px 16px 6px 6px; color: #102d3f; background: #fff; border: 0; border-radius: 20px; box-shadow: none; }
.action-dock .download-float img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
.action-dock .download-float span { font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.action-dock .top-float { flex: none; display: flex; align-items: center; justify-content: center; width: var(--floating-action-height); height: var(--floating-action-height); padding: 0; border-radius: 50%; border: 0; background: #fff; color: #17171b; box-shadow: none; }
.top-float svg { width: 22px; height: 22px; }
html body .action-dock .pixel-float { position: static; inset: auto; transform: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: auto; max-width: calc(100% - 64px); height: var(--floating-action-height); min-height: 0; margin: 0; padding: 12px 20px; border-radius: 20px; background: #2b4cff; color: #fff; font-size: 14px; text-decoration: none; border: 0; box-shadow: none; }
.action-dock button:focus-visible { outline: 3px solid #00a1ff; outline-offset: 3px; }
body:has(dialog[open]) .action-dock { visibility: hidden; }
/* First screen keeps its own actions; the dock appears once the visitor scrolls on. */
.action-dock { transition: opacity .2s, visibility .2s; }
.action-dock.at-top { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .action-dock { transition: none; } }
.download-dialog { box-sizing: border-box; position: fixed; inset: 0; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; border: 1px solid #dbe9f0; border-radius: 24px; padding: 28px 24px 24px; background: #fff; color: #17171b; font-family: inherit; overflow-y: auto; }
.download-dialog::backdrop { background: #102d3f77; backdrop-filter: blur(6px); }
.download-dialog .download-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #17171b; font-size: 28px; cursor: pointer; }
.download-dialog > img { display: block; width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 16px; }
.download-dialog h2 { margin: 0 0 24px; text-align: center; font-size: 22px; line-height: 1.3; }
.download-dialog .download-stores { display: grid; gap: 10px; }
.download-dialog a { display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 10px; border-radius: 14px; background: #17171b; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; }
@media(max-width:360px) { .action-dock { right: max(12px, env(safe-area-inset-right)); } .action-dock .download-float { gap: 8px; } }
