/* Visual child only: no host width, height, padding, margin or overflow changes. */
[data-ba-app-download-bonus-host] > span.ba-app-download-bonus-badge[data-ba-app-download-bonus],
#root#root#root [data-ba-app-download-bonus-host] > span.ba-app-download-bonus-badge[data-ba-app-download-bonus],
#fen-ui#fen-ui#fen-ui [data-ba-app-download-bonus-host] > span.ba-app-download-bonus-badge[data-ba-app-download-bonus]{position:absolute!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;top:var(--ba-dl-bonus-top,-7px)!important;right:var(--ba-dl-bonus-right,5px)!important;bottom:auto!important;left:auto!important;z-index:var(--ba-dl-bonus-z,2)!important;height:var(--ba-dl-bonus-height,18px)!important;min-height:0!important;max-height:var(--ba-dl-bonus-height,18px)!important;width:max-content!important;min-width:0!important;max-width:calc(100% - 4px)!important;flex:none!important;gap:3px!important;margin:0!important;padding:0 5px!important;border:1px solid var(--ba-dl-bonus-border,#fff4fa)!important;border-radius:var(--ba-dl-bonus-radius,6px)!important;background:var(--ba-dl-bonus-bg,linear-gradient(120deg,#f741aa,#e90085))!important;color:var(--ba-dl-bonus-color,#fff)!important;font-family:inherit!important;font-size:var(--ba-dl-bonus-font-size,9px)!important;font-weight:700!important;font-style:normal!important;line-height:1!important;letter-spacing:-.1px!important;white-space:nowrap!important;text-transform:none!important;text-decoration:none!important;text-shadow:none!important;box-shadow:var(--ba-dl-bonus-shadow,0 2px 4px #da267e28)!important;transform:none!important;animation:none!important;pointer-events:none!important;isolation:isolate!important;overflow:hidden!important}
[data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge > svg,
#root#root#root [data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge > svg,
#fen-ui#fen-ui#fen-ui [data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge > svg{position:static!important;display:block!important;flex:none!important;width:9px!important;height:9px!important;margin:0!important;padding:0!important;color:inherit!important;transform:none!important;animation:none!important;pointer-events:none!important}
[data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge > [data-ba-app-download-bonus-text],
#root#root#root [data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge > [data-ba-app-download-bonus-text],
#fen-ui#fen-ui#fen-ui [data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge > [data-ba-app-download-bonus-text]{position:static!important;display:block!important;min-width:0!important;margin:0!important;padding:0!important;color:inherit!important;font:inherit!important;line-height:1!important;white-space:nowrap!important;transform:none!important;animation:none!important;pointer-events:none!important}
[data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge[data-ba-app-download-bonus-long="true"] > svg,
#root#root#root [data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge[data-ba-app-download-bonus-long="true"] > svg,
#fen-ui#fen-ui#fen-ui [data-ba-app-download-bonus-host] > .ba-app-download-bonus-badge[data-ba-app-download-bonus-long="true"] > svg{display:none!important}

/* Download guide only. Homepage button dimensions remain controlled by their existing theme. */
#root#root#root .bg-install.ba-app-install-guide{display:flex;flex-direction:column;gap:20px;width:100%;max-width:760px;margin:0 auto;padding:12px 0 24px;box-sizing:border-box}
#root#root#root .ba-app-install-guide>.bg-category-tabs{justify-content:center;margin:0}
#root#root#root .ba-app-install-guide>.ba-app-install-download{display:flex;justify-content:center;min-width:0}
#root#root#root .ba-app-install-guide .ba-app-install-download>.ba-app-download{display:inline-flex;align-items:center;justify-content:center;gap:10px;max-width:100%;width:min(100%,520px);min-height:52px;padding:15px 18px;box-sizing:border-box;text-align:center;line-height:1.25}
#root#root#root .ba-app-install-guide>.bg-install-steps{display:grid;grid-template-columns:1fr;gap:12px;width:100%;margin:0;padding:0;list-style:none;box-sizing:border-box}
#root#root#root .ba-app-install-guide>.bg-install-steps>li{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:14px;margin:0;padding:17px 20px;min-width:0;box-sizing:border-box;border-radius:20px}
#root#root#root .ba-app-install-guide .ba-app-install-step-copy{display:flex;flex-direction:column;gap:6px;min-width:0;line-height:1.45}
#root#root#root .ba-app-install-guide .ba-app-install-step-copy>small{display:block;font-size:.86em;line-height:1.4;opacity:.85}
#root#root#root .ba-app-install-guide .ba-app-install-bonus{font-weight:700;line-height:1.4}
#root#root#root .ba-app-install-phone{display:flex;justify-content:center;width:100%;padding:12px 0 8px}
#root#root#root .ba-app-install-guide .bg-phone-model{margin:0 auto;flex:none;max-width:calc(100vw - 80px)}
#root#root#root .ba-app-install-guide .ba-install-promo-art{display:inline-block;object-fit:contain;width:36px;height:36px;max-width:100%;vertical-align:middle}
[data-ba-app-download-bonus-host]{--ba-dl-bonus-top:2px;--ba-dl-bonus-right:4px;--ba-dl-bonus-height:16px;--ba-dl-bonus-font-size:9px;--ba-dl-bonus-bg:linear-gradient(120deg,#f64ba7,#e90085);--ba-dl-bonus-border:#ffe2f2;--ba-dl-bonus-color:#fff}
html:not([data-color-theme]) [data-ba-app-download-bonus-host],html[data-color-theme="black"] [data-ba-app-download-bonus-host]{--ba-dl-bonus-bg:linear-gradient(120deg,#f4d572,#9c6926);--ba-dl-bonus-border:#ffebb4;--ba-dl-bonus-color:#241208}
html[data-color-theme="disi"]:not([data-palette="fen"]) [data-ba-app-download-bonus-host]{--ba-dl-bonus-bg:linear-gradient(120deg,#b77bfb,#6c39b9);--ba-dl-bonus-border:#e2ceff}
@media(max-width:480px){#root#root#root .bg-install.ba-app-install-guide{gap:16px}#root#root#root .ba-app-install-guide>.bg-install-steps>li{padding:15px;gap:10px}}
