/* SCDO games standard UI 1.2 (2026-10-17). 1.2: collapsible stack on <=480px. Scoped under #sstd-*. 1.1: hub link + Games Ledger TG group. */
#sstd-bar{position:fixed;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:2147483000;display:flex;flex-direction:column;gap:6px;align-items:flex-end;font:600 12px/1.2 system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif}
#sstd-bar>button,#sstd-bar>a{border:0;border-radius:18px;padding:7px 11px;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.35);text-decoration:none;opacity:.92;font:inherit;white-space:nowrap}
#sstd-bar>*:hover{opacity:1}
#sstd-cat{background:#ffb703;color:#222}#sstd-tip{background:#1d2433;color:#ffd166}#sstd-tg{background:#2aabee;color:#fff}
#sstd-tgs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}#sstd-tgs>a{border:0;border-radius:18px;padding:7px 11px;box-shadow:0 2px 10px rgba(0,0,0,.35);text-decoration:none;opacity:.92;white-space:nowrap}#sstd-tgs>a:hover{opacity:1}
#sstd-tgg{background:#0f1522;color:#7dd3fc;border:1px solid #2aabee!important}
#sstd-hub{background:#0f1522!important;color:#fcd34d;border:1px solid #f59e0b!important;padding:5px 10px!important;font-size:11px}
.sstd-pan{position:fixed;right:10px;bottom:calc(150px + env(safe-area-inset-bottom));z-index:2147483001;width:min(330px,calc(100vw - 20px));max-height:min(70vh,520px);background:#1d2433;color:#fff;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.5);display:none;flex-direction:column;font:14px/1.4 system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif;overflow:hidden}
.sstd-pan.on{display:flex}
.sstd-hd{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#141a26;font-weight:700}
.sstd-x{background:none;border:0;color:#fff;font-size:18px;cursor:pointer;padding:0 4px}
#sstd-log{flex:1;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-height:160px}
.sstd-m{padding:8px 10px;border-radius:12px;max-width:88%;white-space:pre-wrap;word-break:break-word}
.sstd-m.b{background:#2b3447;align-self:flex-start}.sstd-m.u{background:#ffb703;color:#222;align-self:flex-end}
#sstd-f{display:flex;gap:6px;padding:8px;border-top:1px solid #2b3447}
#sstd-in{flex:1;border:0;border-radius:10px;padding:8px;font:inherit;min-width:0}
#sstd-f button{border:0;border-radius:10px;background:#ffb703;color:#222;font-weight:700;padding:0 12px;cursor:pointer}
.sstd-ft{font-size:11px;opacity:.7;padding:0 12px 8px}.sstd-ft a{color:#9cd2ff}
#sstd-tb{padding:12px;overflow:auto}
#sstd-tb .sstd-row{display:flex;gap:6px;margin:8px 0}
#sstd-tb button,#sstd-tb a.sstd-btn{flex:1;display:block;box-sizing:border-box;margin:6px 0;padding:10px;border-radius:10px;border:0;font:600 14px system-ui;cursor:pointer;text-align:center;text-decoration:none;background:#2775ca;color:#fff}
#sstd-tmsg{white-space:pre-wrap;font-size:12px;opacity:.9;margin-top:6px;word-break:break-all}
.sstd-sm{font-size:12px;opacity:.8}
#sstd-tog{display:none;background:#0f1522;color:#fcd34d;border:1px solid #f59e0b!important;width:38px;height:38px;padding:0!important;border-radius:50%!important;font-size:18px!important;line-height:36px;text-align:center}
@media (max-width:480px){#sstd-tog{display:block}#sstd-bar:not(.open)>*:not(#sstd-tog){display:none!important}#sstd-bar.open>#sstd-tog{order:99}.sstd-pan{bottom:calc(58px + env(safe-area-inset-bottom))}}
