.download-widget{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:70;max-width:calc(100vw - 28px);pointer-events:none}
.download-widget>*{pointer-events:auto}
.download-game-toggle{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;max-width:100%;padding:10px 17px;border:1px solid #d8b77b9c;border-radius:5px;background:#211a2bf5;box-shadow:0 5px 24px #0008;color:var(--gold-bright);font-size:.79rem;font-weight:600}
.download-game-toggle:hover{border-color:var(--gold-bright);background:#302339}
.download-game-toggle svg{flex:none}
.download-game-panel{position:absolute;right:0;bottom:calc(100% + 12px);width:380px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 110px);overflow:auto;padding:24px;border:1px solid #d8b77b70;border-radius:8px;background:linear-gradient(145deg,#282032,#17121f);box-shadow:0 15px 55px #000b}
.download-widget-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.download-widget-heading h2{font-size:1.65rem;line-height:1.2;max-width:100%;margin:0}
.download-widget-close{display:grid;place-items:center;flex:none;width:36px;height:36px;margin:-7px -7px 0 0;background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--gold)}
.download-widget-close:hover{border-color:var(--gold)}
.download-widget-options{display:flex;flex-direction:column;gap:12px;margin-top:22px}
.download-widget-options .btn{width:100%;font-size:.8rem;text-align:center}
.download-widget-note{font-size:.72rem;line-height:1.7;margin-top:18px;overflow-wrap:anywhere}
.download-label-compact{display:none}
.download-game-toggle:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}
@media(max-width:700px){
 body{padding-bottom:max(80px,calc(env(safe-area-inset-bottom) + 72px))}
 .download-widget{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
 .download-game-toggle{flex-direction:column;gap:3px;width:56px;min-width:56px;min-height:56px;padding:7px 4px;border-radius:8px;background:#181220d9;box-shadow:0 3px 12px #0005}
 .download-game-toggle>svg{width:18px;height:18px}
 .download-label-long{display:none}
 .download-label-compact{display:block;font-size:.68rem;line-height:1.1;white-space:nowrap}
 .download-game-panel{padding:20px;max-width:calc(100vw - 24px)}
}
