.update-notice {
  position: fixed;
  z-index: 48;
  inset-block-start: calc(var(--journey-hud-height, 0px) + max(12px, env(safe-area-inset-top)));
  inset-inline-end: max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 7px 12px;
  padding: 12px;
  inline-size: min(370px, calc(100% - 32px));
  border: 1px solid #91774e;
  border-radius: 13px;
  color: #fff2d7;
  background:
    linear-gradient(118deg, #183839a6, #0b181df0 72%),
    radial-gradient(ellipse at 13% 4%, #554b3a, #192327 66%);
  box-shadow: 0 9px 36px #0008, inset 0 1px #eac68742, inset 0 -2px #0b111b92;
  overflow-wrap: anywhere;
  animation: update-rise 330ms cubic-bezier(.24,.72,.36,1) both;
}
.update-notice[hidden],
.update-notice [hidden] {
  display: none;
}
body:has(dialog[open]) .update-notice {
  visibility: hidden;
  pointer-events: none;
}
.update-gem {
  grid-row: span 2;
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px #0009);
  animation: update-facet 1.25s 180ms ease-out both;
}
.update-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}
.update-copy p {
  margin: 3px 0 0;
  color: #d9e6df;
  font-size: .82rem;
  line-height: 1.28;
}
.update-copy .update-feedback {
  margin-block-start: 7px;
  color: #ffe3ac;
}
.update-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body .update-actions button {
  min-height: 44px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid #e9cd97;
  background: #f3d28c;
  color: #1b2b2b;
  font-size: .83rem;
  line-height: 1.2;
  white-space: normal;
}
body .update-actions .update-later {
  color: #fff2d7;
  background: #233438;
  border-color: #b9a77a;
}
.update-notice[data-compact=true] {
  inline-size: min(318px, calc(100% - 32px));
  grid-template-columns: 32px minmax(0,1fr) auto;
  gap: 6px 9px;
  padding-block: 6px;
  animation: update-stow 210ms ease-out both;
}
.update-notice[data-compact=true] .update-gem { grid-row: 1; animation: none; }
.update-notice[data-compact=true] .update-copy p { display: none; }
.update-notice[data-compact=true] .update-actions { grid-column: 3; }
@keyframes update-rise {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes update-facet {
  40% { filter: brightness(1.32) drop-shadow(0 0 8px #98efceae); }
}
@keyframes update-stow {
  from { opacity: .58; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 650px) {
  .update-notice {
    inset-block-start: auto;
    inset-block-end: calc(var(--footer-height, 0px) + max(9px, env(safe-area-inset-bottom)));
    inset-inline-end: max(10px, env(safe-area-inset-right));
    inline-size: min(340px, calc(100% - 20px));
    grid-template-columns: 36px minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .update-notice, .update-notice[data-compact=true], .update-gem { animation: none; }
}
