/* A persistent update action, independent of ordinary game notices. */
.sc-update-notice {
  position:fixed;
  inset:auto auto max(22px,env(safe-area-inset-bottom)) 50%;
  z-index:2147483000;
  box-sizing:border-box;
  width:max-content;
  max-width:calc(100vw - 32px);
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:#fff5db;
  transform:translateX(-50%);
  overflow:visible;
  color-scheme:light;
  color-scheme:light only;
}
.sc-update-notice[hidden] { display:none!important; }
.sc-update-notice::backdrop { background:transparent; pointer-events:none; }
.sc-update-notice .sc-update-notice-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  margin:0;
  padding:11px 16px;
  border:0;
  border-radius:10px;
  outline:none;
  box-shadow:0 6px 20px #09151f33;
  background:#243f42;
  color:#fff5db;
  font:400 14px/1.5 Literata,Georgia,serif;
  text-align:center;
  text-transform:none;
  letter-spacing:normal;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.sc-update-notice .sc-update-notice-button:is(:hover,:focus-visible) { background:#375b57; color:#fffaf0; }
.sc-update-notice .sc-update-notice-button:active { background:#1b3538; }
.sc-update-notice .sc-update-notice-button:disabled { cursor:wait; opacity:.75; }
.sc-update-notice-ok { flex:none; padding:2px 7px; border-radius:4px; background:#fff5db1c; font-weight:650; }
html.sc-update-available :is(#toast.sc-message-overlay,#notice.sc-message-overlay,.sc-home-loading) {
  bottom:calc(max(22px,env(safe-area-inset-bottom)) + var(--sc-update-notice-height,48px) + 10px);
}
@media(max-width:340px) {
  .sc-update-notice .sc-update-notice-button { gap:9px; padding-inline:12px; font-size:13px; }
}
