.update-notice[hidden] {
  display: none !important;
}

.update-notice {
  position: fixed;
  z-index: 650;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(390px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: #fff;
  background: #1d1d24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  animation: update-notice-in 0.25s ease;
}

.update-notice-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.update-notice-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.update-notice-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.update-notice-button {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #e82631;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.update-notice-button:hover {
  background: #c91f2a;
}

.update-notice-button:focus-visible {
  outline: 3px solid rgba(232, 38, 49, 0.35);
  outline-offset: 2px;
}

.update-notice-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@keyframes update-notice-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 600px) {
  .update-notice {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    gap: 12px;
    padding: 14px;
    border-radius: 15px;
  }

  .update-notice-copy span {
    font-size: 11px;
  }

  .update-notice-button {
    min-height: 40px;
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-notice {
    animation: none;
  }
}
