/* emulator.st additions on the nfshp2-web player page (session 126). The upstream page keeps its own style.css;
   this adds the bar, the save-sync pill and the auto-start overlay, and hides the upstream donation button and
   counts (this deployment serves its own audience). */
#emst-bar{position:fixed;left:max(8px,env(safe-area-inset-left));top:max(8px,env(safe-area-inset-top));z-index:50;display:flex;gap:8px;align-items:center;flex-wrap:wrap;max-width:calc(100vw - 16px);font:13px/1.3 system-ui,sans-serif;background:rgba(6,10,20,.88);color:#dfe8ff;border:1px solid #23345a;border-radius:10px;padding:6px 10px}
#emst-bar a{color:#7fd6ff;text-decoration:none;font-weight:600}
#emst-bar a:hover{text-decoration:underline}
#emst-bar .emst-who{color:#a9b8d8}
#emst-bar[hidden]{display:none}
#emst-pill{color:#0b1220;font-weight:700;border-radius:999px;padding:3px 10px;background:#6b7a99;font-size:12px}
#emst-pill:empty{display:none}
#emst-pill.cloud{background:#7ee2a8}
#emst-pill.syncing{background:#ffd479}
#emst-pill.pending{background:#ffd479}
#emst-pill.offline{background:#ff9f7a}
#emst-pill.conflict{background:#ff7a9d}
#emst-pill.failed{background:#ff7a7a}
#emst-toast{position:fixed;left:50%;top:max(10px,env(safe-area-inset-top));transform:translateX(-50%);z-index:60;font:600 13px/1.3 system-ui,sans-serif;color:#0b1220;background:#ffd479;border-radius:999px;padding:6px 14px;box-shadow:0 6px 24px rgba(0,0,0,.45)}
#emst-toast.cloud{background:#7ee2a8}
#emst-toast.conflict,#emst-toast.failed{background:#ff7a9d}
/* the auto-start loading screen (the launcher's two modes) over the start page, under the game's stage (z 5 in
   upstream style.css) and its dialogs (top layer) */
#emst-auto{position:fixed;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 16px;text-align:center;background:radial-gradient(ellipse at 50% 40%,#12233f 0,#05070d 70%);color:#e6ecff;font:16px/1.4 system-ui,sans-serif}
#emst-auto h1{margin:0 0 6px;font-size:clamp(1.3rem,3.2vw,2rem);font-weight:700}
#emst-auto .emst-auto-step{margin:0;font-size:1.05rem;color:#9fe3ff;font-weight:600}
#emst-auto .emst-auto-detail{margin:0;max-width:640px;color:#8ea0c4;font-size:.9rem;min-height:1.3em}
#emst-auto .emst-auto-barwrap{width:min(420px,80vw);height:8px;border-radius:999px;background:#182338;overflow:hidden}
#emst-auto .emst-auto-barwrap.indet .emst-auto-bar{width:35%;animation:emst-slide 1.1s ease-in-out infinite alternate}
#emst-auto .emst-auto-bar{height:100%;width:0;background:linear-gradient(90deg,#00b4ff,#5a3cff);transition:width .4s}
#emst-auto .emst-auto-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:8px}
#emst-auto .emst-auto-actions button{font:inherit;font-weight:600;padding:9px 16px;border-radius:8px;border:1px solid #2b3c63;background:#111a2e;color:#e6ecff;cursor:pointer}
@keyframes emst-slide{from{margin-left:0}to{margin-left:65%}}
@keyframes emst-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#emst-auto .emst-auto-barwrap.indet .emst-auto-bar{animation:none}}
html.emst-auto body{overflow:hidden}
/* upstream's donation prompt is not part of this deployment (the credits stay on the page) */
.btn.donate{display:none}
